From: Rafael Kitover Date: Fri, 28 Oct 2011 23:11:28 +0000 (-0400) Subject: fix double backcompat warning X-Git-Tag: 0.07011~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Schema-Loader.git;a=commitdiff_plain;h=b7b8c970b8fa160aaf9eb79bb1b98262d341f029 fix double backcompat warning Set naming and use_namespaces in the temp loader used in ::Loader to get the schema_base_class and schema_components so that no backcompat check is done and warning isn't issued. --- diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index e826c66..6d802da 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -236,6 +236,8 @@ sub connection { my $temp_loader = DBIx::Class::Schema::Loader::Base->new( %{ $self->_loader_args }, schema => $self, + naming => 'current', + use_namespaces => 1, ); if ($temp_loader->schema_base_class || $temp_loader->schema_components) {