From: Jess Robinson Date: Thu, 16 Nov 2006 16:45:29 +0000 (+0000) Subject: Added patch from Ted Carnahan to rel docs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a693b31929e01324a4c8e51e52caf59781dcf071;p=dbsrgits%2FDBIx-Class-Historic.git Added patch from Ted Carnahan to rel docs --- diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 3b381a0..c987bb5 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -308,9 +308,11 @@ And, for the reverse relationship, from Role to Actor: My::DBIC::Schema::Role->many_to_many( actors => 'actor_roles', 'actor' ); -Creates accessors bridging two relationships; not strictly a relationship in -its own right, although the accessor will return a resultset or collection of -objects just as a has_many would. +Many_to_many is not strictly a relationship in its own right. Instead, it is +a bridge between two resultsets which provide the same kind of convenience +accessors as true relationships provide. Although the accessor will return a +resultset or collection of objects just like has_many does, you cannot call +C<$related_resultset> and similar methods which operate on true relationships. In the above example, ActorRoles is the link table class, and Role is the foreign class. The C<$link_rel_name> parameter is the name of the accessor for