[Bast-commits] r7877 -
DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema
abraxxa at dev.catalyst.perl.org
abraxxa at dev.catalyst.perl.org
Fri Nov 13 11:05:51 GMT 2009
Author: abraxxa
Date: 2009-11-13 11:05:50 +0000 (Fri, 13 Nov 2009)
New Revision: 7877
Modified:
DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year1999CDs.pm
DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year2000CDs.pm
Log:
added rels to view result classes in test schema
Modified: DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year1999CDs.pm
===================================================================
--- DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year1999CDs.pm 2009-11-13 09:39:55 UTC (rev 7876)
+++ DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year1999CDs.pm 2009-11-13 11:05:50 UTC (rev 7877)
@@ -28,4 +28,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' );
+
1;
Modified: DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year2000CDs.pm
===================================================================
--- DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year2000CDs.pm 2009-11-13 09:39:55 UTC (rev 7876)
+++ DBIx-Class/0.08/branches/view_rels/t/lib/DBICTest/Schema/Year2000CDs.pm 2009-11-13 11:05:50 UTC (rev 7877)
@@ -27,4 +27,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' );
+
1;
More information about the Bast-commits
mailing list