- Swapped ordering for schema so connection class comes first. This should
Matt S Trout [Mon, 8 Aug 2005 17:33:55 +0000 (17:33 +0000)]
  allow a schema which has been composed in-place to be composed elsewhere
  as well without breakage.

lib/DBIx/Class/Schema.pm

index 06d1416..5c99525 100644 (file)
@@ -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);
   }
   {