only _load_external for the classes we are supposed to
Brandon Black [Fri, 30 Mar 2007 22:46:18 +0000 (22:46 +0000)]
lib/DBIx/Class/Schema/Loader/Base.pm

index 2413960..0207217 100644 (file)
@@ -365,7 +365,7 @@ sub _load_tables {
     }
 
     $self->_load_external($_)
-        for ($self->schema_class, values %{$self->classes});
+        for map { $self->classes->{$_} } @tables;
 
     $self->_dump_to_dir if $self->dump_directory;