X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FRelationship%2FManyToMany.pm;h=7075fbdfe61503764b796cc0fe5a28bc5aa2c1de;hb=13fd7cde4bfdf09da40fedc02ade59bffb766925;hp=2812b6bf0c1debb906cc52b6ad2a7eb0ddca4cf2;hpb=97940e368df996e1fe6111fb14f560594dc4c0b2;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Relationship/ManyToMany.pm b/lib/DBIx/Class/Relationship/ManyToMany.pm index 2812b6b..7075fbd 100644 --- a/lib/DBIx/Class/Relationship/ManyToMany.pm +++ b/lib/DBIx/Class/Relationship/ManyToMany.pm @@ -70,13 +70,8 @@ EOW quote_sub "${class}::${meth}", sprintf( <<'EOC', $rs_meth ), @main_meth_qsub_args; - DBIx::Class::_ENV_::ASSERT_NO_INTERNAL_INDIRECT_CALLS and DBIx::Class::_Util::fail_on_internal_call; - DBIx::Class::_ENV_::ASSERT_NO_INTERNAL_WANTARRAY and my $sog = DBIx::Class::_Util::fail_on_internal_wantarray; - - my $rs = shift->%s( @_ ); - - wantarray ? $rs->all : $rs; + shift->%s( @_ )->search; EOC