license => 'perl',
module_name => 'DBIx::Class::Schema::Loader',
requires => {
+ 'Scalar::Util' => 0,
'Data::Dump' => 1.06,
'UNIVERSAL::require' => 0.10,
'Lingua::EN::Inflect' => 1.89,
use UNIVERSAL::require;
use Class::C3;
use Data::Dump qw/ dump /;
+use Scalar::Util qw/ weaken /;
# Always remember to do all digits for the version even if they're 0
# i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports
my $class = ref $self || $self;
$args{schema} = $self;
$args{schema_class} = $class;
+ weaken($args{schema}) if ref $self;
+
$self->_loader_args(\%args);
$self->_invoke_loader if $self->storage && !$class->loader;
$clone->_loader_args($self->_loader_args);
$clone->_loader_args->{schema} = $clone;
+ weaken($clone->_loader_args->{schema});
$clone;
}