X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship.pm;h=cdb35811c573d9a5c30358e064e3de077c05fd1c;hb=9ce9ec1036c3a67b4087b3f4a90bca09463c1e03;hp=15f1bc65be0d66e8d621009d23c389d09b661f61;hpb=845b709dcfc7cbdc3d60b779415d6edae3962a70;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 15f1bc6..cdb3581 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -6,17 +6,13 @@ use warnings; use base qw/DBIx::Class/; __PACKAGE__->load_own_components(qw/ - HasMany - HasOne - BelongsTo + Helpers Accessor CascadeActions ProxyMethods Base /); -__PACKAGE__->mk_classdata('_relationships', { } ); - =head1 NAME DBIx::Class::Relationship - Inter-table relationships @@ -100,6 +96,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;