generate full class names in rel definitions (from victori)
Brandon Black [Tue, 14 Nov 2006 23:11:46 +0000 (23:11 +0000)]
lib/DBIx/Class/Schema/Loader/RelBuilder.pm

index f4a503f..9b61371 100644 (file)
@@ -194,7 +194,7 @@ sub generate_code {
             push(@{$all_code->{$local_class}},
                 { method => 'belongs_to',
                   args => [ $remote_relname,
-                            $remote_moniker,
+                            $remote_class,
                             \%cond,
                   ],
                 }
@@ -203,7 +203,7 @@ sub generate_code {
             push(@{$all_code->{$remote_class}},
                 { method => 'has_many',
                   args => [ $local_relname,
-                            $local_moniker,
+                            $local_class,
                             \%rev_cond,
                   ],
                 }