Fey::Meta::HasMany::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
If it finds exactly one,
it uses that one.
This will be appended to the SQL which is generated to select the foreign rows.
It should be an arrayref which can be passed to
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::HasMany, it also provides the following methods:
Corresponds to the value passed to the constructor, or the calculated default.
Corresponds to the value passed to the constructor.
Dave Rolsky <firstname.lastname@example.org>
This software is copyright (c) 2011 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.