From: Matt S Trout Date: Tue, 28 Feb 2006 22:32:00 +0000 (+0000) Subject: Additional docs for many_to_many X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b8eca5ce82b73d34d511ee6154c093178862cfb1;p=dbsrgits%2FDBIx-Class-Historic.git Additional docs for many_to_many --- diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index e9adb82..22be1d3 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -99,8 +99,12 @@ whereas C uses a left join. =head2 many_to_many - __PACKAGE__->many_to_many( 'accessorname' => 'a_to_b', 'table_b' ); - my @f_objs = $obj_a->accessorname; + __PACKAGE__->many_to_many( 'accessorname' => 'a_to_b', 'table_b' ); + my @f_objs = $obj_a->accessorname; + +Creates an accessor 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. =cut