X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FManyToMany.pm;h=a88e1b0051ad1c9b121e0a1e712cb7caab0ebc53;hb=3a868fb29b0bb50a7216f770cc9a71d358d67431;hp=8818a69471277eee7c05a7e5e0192dcd386791db;hpb=f574b655a8b248eff0c0f6e4459cb66aff44c0a2;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship/ManyToMany.pm b/lib/DBIx/Class/Relationship/ManyToMany.pm index 8818a69..a88e1b0 100644 --- a/lib/DBIx/Class/Relationship/ManyToMany.pm +++ b/lib/DBIx/Class/Relationship/ManyToMany.pm @@ -13,7 +13,9 @@ sub many_to_many { *{"${class}::${meth}"} = sub { my $self = shift; my $attrs = @_ > 1 && ref $_[$#_] eq 'HASH' ? pop(@_) : {}; - $self->search_related($rel)->search_related($f_rel, @_ > 0 ? @_ : undef, { %{$rel_attrs||{}}, %$attrs }); + $self->search_related($rel)->search_related( + $f_rel, @_ > 0 ? @_ : undef, { %{$rel_attrs||{}}, %$attrs } + ); }; *{"${class}::add_to_${meth}"} = sub {