add accessor to rels for DBICTest::Schema::Tag and DBICTest::Schema::Track
Will Hawes [Wed, 25 Jan 2006 23:22:43 +0000 (23:22 +0000)]
t/lib/DBICTest/Schema/BasicRels.pm

index a3e7279..9894bb9 100644 (file)
@@ -71,12 +71,14 @@ DBICTest::Schema::SelfRef->add_relationship(
 
 DBICTest::Schema::Tag->add_relationship(
     cd => 'DBICTest::Schema::CD',
-    { 'foreign.cdid' => 'self.cd' }
+    { 'foreign.cdid' => 'self.cd' },
+    { accessor => 'single' }
 );
 
 DBICTest::Schema::Track->add_relationship(
     cd => 'DBICTest::Schema::CD',
-    { 'foreign.cdid' => 'self.cd' }
+    { 'foreign.cdid' => 'self.cd' },
+    { accessor => 'single' }
 );
 
 DBICTest::Schema::TwoKeys->add_relationship(