Many-to-many relationships now warn if the utility methods would clash
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / Schema.pm
index 6e8b7fc..81f050c 100644 (file)
@@ -600,6 +600,7 @@ sub compose_namespace {
   Class::C3->reinitialize();
   {
     no strict 'refs';
+    no warnings 'redefine';
     foreach my $meth (qw/class source resultset/) {
       *{"${target}::${meth}"} =
         sub { shift->schema->$meth(@_) };