X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FRelBuilder.pm;h=5ccb7698615940cbf2a059886f97e690f356ed6d;hb=fd589700a1bd69eed66aa18a1dbdd9bb67098b78;hp=84d74f6b3264648c17b10dfa5a0671984f3b8154;hpb=d3af7a07b420118d58958aed6d5343db6219095c;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/RelBuilder.pm b/lib/DBIx/Class/Schema/Loader/RelBuilder.pm index 84d74f6..5ccb769 100644 --- a/lib/DBIx/Class/Schema/Loader/RelBuilder.pm +++ b/lib/DBIx/Class/Schema/Loader/RelBuilder.pm @@ -191,7 +191,7 @@ sub generate_code { push(@{$all_code->{$local_class}}, { method => 'belongs_to', args => [ $remote_relname, - $remote_moniker, + $remote_class, \%cond, ], } @@ -200,7 +200,7 @@ sub generate_code { push(@{$all_code->{$remote_class}}, { method => 'has_many', args => [ $local_relname, - $local_moniker, + $local_class, \%rev_cond, ], }