From: Matt S Trout Date: Mon, 8 Aug 2005 17:33:55 +0000 (+0000) Subject: - Swapped ordering for schema so connection class comes first. This should X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f753fd2ef5b4e2df0eb074496b252165283a6a4f;p=dbsrgits%2FDBIx-Class-Historic.git - Swapped ordering for schema so connection class comes first. This should allow a schema which has been composed in-place to be composed elsewhere as well without breakage. --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index 06d1416..5c99525 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -88,7 +88,7 @@ sub compose_connection { my %map; while (my ($comp, $comp_class) = each %reg) { my $target_class = "${target}::${comp}"; - $class->inject_base($target_class, $comp_class, $conn_class); + $class->inject_base($target_class, $conn_class, $comp_class); @map{$comp, $comp_class} = ($target_class, $target_class); } {