NAME
Persistence::Relationship - Object relationship,
SYNOPSIS
use Persistence::Relationship ':all';
DESCRIPTION
Represents a base class for object relationship.
EXPORT
one_to_many method by ':all' tag.
ATTRIBUTES
- name
-
Relationship name
- attribute
- fetch_method
-
LAZY, EAGER
- cascade
-
NONE, ALL ON_UPDATE, ON_DELETE, ON_INSERT
METHODS
- one_to_many
- relationship
- insertable_to_many_relations
-
Returns all to many relation where insert applies.
- insertable_to_one_relations
-
Returns all to one relation where insert applies.
- updatable_to_many_relations
-
Returns all relation where insert applies.
- updatable_to_one_relations
-
Returns all relation where insert applies.
- deleteable_to_many_relations
-
Returns all to many relation where insert applies.
- deleteable_to_one_relations
-
Returns all to one relation where insert applies.
- eager_fetch_relations
- install_fetch_interceptor
- set_persistence_conext
-
Sets persistence context
- persistence_conext
-
Returns persistent context for passed in class
- values
-
Returns relations values as array ref, takes object as parameter
SEE ALSO
Persistence::Entity Persistence::Relationship::OneToMany Persistence::Relationship::ManyToMany
COPYRIGHT AND LICENSE
The Persistence::Relationship module is free software. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
AUTHOR
Adrian Witas, adrian@webapp.strefa.pl