NAME
Fey::Meta::FK - A parent for foreign key-based metaclasses
DESCRIPTION
This class exists to provide a common parent for has-one and has-many metaclasses. See the relevant classes for documentation.
CONSTRUCTOR OPTIONS
This class accepts the following constructor options:
name
The name of the relationship. This will be used as the name for any attribute or method created by this metaclass.
This defaults to
lc $self->foreign_table()->name()
.table
The (source) table of the foreign key.
foreign_table
The foreign table for the foreign key
is_cached
Determines whether the relationship's value is cached. This is implemented in different ways for has-one vs has-many relationships.
AUTHOR
Dave Rolsky, <autarch@urth.org>
BUGS
See Fey::ORM for details.
COPYRIGHT & LICENSE
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.