seems I found the bugger
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Year1999CDs.pm
index 29b3666..e629e45 100644 (file)
@@ -29,6 +29,7 @@ __PACKAGE__->set_primary_key('cdid');
 __PACKAGE__->add_unique_constraint([ qw/artist title/ ]);
 
 __PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' );
-__PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track' );
+__PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track',
+    { "foreign.cd" => "self.cdid" });
 
 1;