X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship.pm;h=3a68ee25fa6d78e4d34b3941742a4e5b8853f38d;hb=fea3d0452969e98afc0296ba80f90a91ab7dc1be;hp=15f1bc65be0d66e8d621009d23c389d09b661f61;hpb=845b709dcfc7cbdc3d60b779415d6edae3962a70;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 15f1bc6..3a68ee2 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -6,9 +6,7 @@ use warnings; use base qw/DBIx::Class/; __PACKAGE__->load_own_components(qw/ - HasMany - HasOne - BelongsTo + Helpers Accessor CascadeActions ProxyMethods @@ -100,6 +98,12 @@ except the implication is that the other object is always present. The only diff between C and C is that C uses an (ordinary) inner join, 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; + =cut 1;