Fey::Meta::Role::Relationship - A shared role for all foreign HasX metaclasses


Fey-ORM documentation  | view source Contained in the Fey-ORM distribution.

Index


NAME

Top

Fey::Meta::Role::Relationship - A shared role for all foreign HasX metaclasses

VERSION

Top

version 0.43

DESCRIPTION

Top

This role provides shared functionality for has-one and has-many metaclasses. See the relevant classes for documentation.

CONSTRUCTOR OPTIONS

Top

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().

* 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

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey-ORM documentation  | view source Contained in the Fey-ORM distribution.