From: Brandon Black Date: Sat, 18 Feb 2006 01:10:02 +0000 (+0000) Subject: source base class should be DBIC not the schema-class... X-Git-Tag: 0.03000~16 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f3be6194c41f6146eb7ef2a4d04e2d3eacb1f359;p=dbsrgits%2FDBIx-Class-Schema-Loader.git source base class should be DBIC not the schema-class... --- diff --git a/lib/DBIx/Class/Schema/Loader/Generic.pm b/lib/DBIx/Class/Schema/Loader/Generic.pm index d12da60..cabe7ca 100644 --- a/lib/DBIx/Class/Schema/Loader/Generic.pm +++ b/lib/DBIx/Class/Schema/Loader/Generic.pm @@ -7,7 +7,7 @@ use Class::C3; use Carp; use Lingua::EN::Inflect; use UNIVERSAL::require; -require DBIx::Class::Core; +require DBIx::Class; # The first group are all arguments which are may be defaulted within, # The last two (classes, monikers) are generated locally: @@ -319,7 +319,7 @@ sub _load_classes { my $table_class = $schema . q{::} . $table_moniker; { no strict 'refs'; - @{"${table_class}::ISA"} = ($schema); + @{"${table_class}::ISA"} = qw/DBIx::Class/; } $self->_use ($table_class, @{$self->additional_classes}); $self->_inject($table_class, @{$self->additional_base_classes});