rewrite belongs_to again, so $cond is foreign key in current table
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / HelperRels.pm
index 2f99d7b..63191ea 100644 (file)
@@ -26,7 +26,9 @@ DBICTest::Schema::SelfRef->has_many(
 
 DBICTest::Schema::Tag->belongs_to('cd', 'DBICTest::Schema::CD');
 
-DBICTest::Schema::Track->belongs_to('cd', 'DBICTest::Schema::CD', 'cdid');
+DBICTest::Schema::Track->belongs_to('cd', 'DBICTest::Schema::CD');
+
+DBICTest::Schema::Track->belongs_to('disc', 'DBICTest::Schema::CD', 'cd');
 
 DBICTest::Schema::TwoKeys->belongs_to('artist', 'DBICTest::Schema::Artist');