
Fey::Meta::HasOne::ViaFK - A parent for has-one metaclasses based on a Fey::FK object

This class implements a has-one relationship for a class, based on a provided (or deduced) Fey::FK object.

This class accepts the following constructor options:
If you don't provide this,
the class looks for foreign keys between $self->table() and and $self->foreign_table().
If it finds exactly one,
it uses that one.
This defaults to true if any of the columns in the local table are NULLable, otherwise it defaults to false.

Besides the methods inherited from Fey::Meta::HasOne, it also provides the following methods:
Corresponds to the value passed to the constructor, or the calculated default.

Dave Rolsky, <autarch@urth.org>

See Fey::ORM for details.

Copyright 2006-2009 Dave Rolsky, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module.