From: Rafael Kitover Date: Fri, 28 Oct 2011 17:05:25 +0000 (-0400) Subject: fix uninitialized warning X-Git-Tag: 0.07011~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Schema-Loader.git;a=commitdiff_plain;h=a2c2cf690af396866dda4e981b24f8e0aa55a8ab fix uninitialized warning Change the temporary loader used to extract the schema_base_class and schema_components to be created with the schema => $self arg, so the constructor (and _check_back_compat) can read the Schema.pm. --- diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 7e929a3..e826c66 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -234,7 +234,8 @@ sub connection { # before connecting. require DBIx::Class::Schema::Loader::Base; my $temp_loader = DBIx::Class::Schema::Loader::Base->new( - %{ $self->_loader_args } + %{ $self->_loader_args }, + schema => $self, ); if ($temp_loader->schema_base_class || $temp_loader->schema_components) {