Fey::Meta::Role::Relationship - A shared role for all foreign HasX metaclasses
version 0.47
This role provides shared functionality for has-one and has-many metaclasses. See the relevant classes for documentation.
This role adds 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().
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.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2011 - 2015 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.
To install Fey::ORM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fey::ORM
CPAN shell
perl -MCPAN -e shell install Fey::ORM
For more information on module installation, please visit the detailed CPAN module installation guide.