split off the new _id stripping into _multi_rel_local_relname overridden in the v4...
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / RelBuilder / Compat / v0_040.pm
index 3d12a25..7b4451e 100644 (file)
@@ -30,5 +30,24 @@ sub _remote_relname {
     return $remote_relname;
 }
 
+sub _multi_rel_local_relname {
+    my ($self, $local_table, $local_cols) = @_;
+
+    my $colnames = q{_} . join(q{_}, @$local_cols);
+    my $local_relname = $self->_inflect_plural( lc($local_table) . $colnames );
+
+    return $local_relname;
+}
 
 1;
+
+=head1 NAME
+
+DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040 - RelBuilder for
+compatibility with DBIx::Class::Schema::Loader version 0.04006
+
+=head1 DESCRIPTION
+
+See L<DBIx::Class::Schema::Loader::Base/naming>.
+
+=cut