1 package # hide from PAUSE
2 DBIx::Class::Relationship::ManyToMany;
8 my ($class, $meth, $rel, $f_rel, $rel_attrs) = @_;
11 no warnings 'redefine';
12 *{"${class}::${meth}"} = sub {
14 my $attrs = @_ > 1 && ref $_[$#_] eq 'HASH' ? pop(@_) : {};
15 $self->search_related($rel)->search_related($f_rel, @_ > 0 ? @_ : undef, { %{$rel_attrs||{}}, %$attrs });