From: Matt S Trout Date: Tue, 15 Nov 2005 10:00:36 +0000 (+0000) Subject: Getting there ... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63e9583ab1f1acfe8649ce6b4bed5be2251a7469;p=dbsrgits%2FDBIx-Class-Historic.git Getting there ... --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index 88dfd5b..339f236 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -2,6 +2,7 @@ package DBIx::Class::Schema; use strict; use warnings; +use DBIx::Class::DB; use base qw/Class::Data::Inheritable/; use base qw/DBIx::Class/; @@ -137,7 +138,7 @@ sub compose_connection { my %map; while (my ($comp, $comp_class) = each %reg) { my $target_class = "${target}::${comp}"; - $class->inject_base($target_class, $conn_class, $comp_class); + $class->inject_base($target_class, $comp_class, $conn_class); $target_class->table($comp_class->table); @map{$comp, $comp_class} = ($target_class, $target_class); } @@ -162,8 +163,8 @@ and the subclasses the schema creates. sub setup_connection_class { my ($class, $target, @info) = @_; - $class->inject_base($target => 'DBIx::Class'); - $target->load_components('DB'); + $class->inject_base($target => 'DBIx::Class::DB'); + #$target->load_components('DB'); $target->connection(@info); }