X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship.pm;h=e9adb82de3059eb457c7dac0f8983e430d88060c;hb=f4409169fe98a88a7802b96e8a75838e8a4756c6;hp=71c000440d3d2c73582f5a5b66c9f4f53417d01b;hpb=4685e00665ca987cd3acae87bc1d988f8ab56b31;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Relationship.pm b/lib/DBIx/Class/Relationship.pm index 71c0004..e9adb82 100644 --- a/lib/DBIx/Class/Relationship.pm +++ b/lib/DBIx/Class/Relationship.pm @@ -13,23 +13,6 @@ __PACKAGE__->load_own_components(qw/ Base /); -__PACKAGE__->mk_classdata('_relationships', { } ); - -sub relationships -{ - my $self = shift; - - return keys %{$self->_relationships}; -} - -sub relationship_info -{ - my $self = shift; - my ($rel) = @_; - - return $self->_relationships->{$rel}; -} - =head1 NAME DBIx::Class::Relationship - Inter-table relationships @@ -114,8 +97,8 @@ between C and C is that C uses an (ordinary) inner whereas C uses a left join. -=head2 many_to_many - +=head2 many_to_many + __PACKAGE__->many_to_many( 'accessorname' => 'a_to_b', 'table_b' ); my @f_objs = $obj_a->accessorname;