X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FRelBuilder%2FCompat%2Fv0_040.pm;h=3e95f8b707dd67ae70d1c46d7290ce5f2017b890;hb=dec809869e443d2b09cb4d86835dadc489d1d116;hp=6bb08cbc7bf279a71450b96dd0f2f9e15238954a;hpb=404aefa40641f06910962ac7cd69133298ee4598;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/RelBuilder/Compat/v0_040.pm b/lib/DBIx/Class/Schema/Loader/RelBuilder/Compat/v0_040.pm index 6bb08cb..3e95f8b 100644 --- a/lib/DBIx/Class/Schema/Loader/RelBuilder/Compat/v0_040.pm +++ b/lib/DBIx/Class/Schema/Loader/RelBuilder/Compat/v0_040.pm @@ -2,20 +2,18 @@ package DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040; use strict; use warnings; -use mro 'c3'; use base 'DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_05'; -use Carp::Clan qw/^DBIx::Class/; -use Lingua::EN::Inflect::Number (); +use mro 'c3'; -our $VERSION = '0.07010'; +our $VERSION = '0.07020'; sub _relnames_and_method { my ( $self, $local_moniker, $rel, $cond, $uniqs, $counters ) = @_; my $remote_moniker = $rel->{remote_source}; - my $remote_table = $self->{schema}->source( $remote_moniker )->from; + my $remote_table = $rel->{remote_table}; - my $local_table = $self->{schema}->source($local_moniker)->from; + my $local_table = $rel->{local_table}; my $local_cols = $rel->{local_columns}; # for single-column case, set the remote relname to just the column name