Functional row-parse generator - really works!!!
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CD.pm
index a271dd8..23cbcf9 100644 (file)
@@ -26,7 +26,7 @@ __PACKAGE__->add_columns(
   'genreid' => { 
     data_type => 'integer',
     is_nullable => 1,
-    accessor => 'undef',
+    accessor => undef,
   },
   'single_track' => {
     data_type => 'integer',
@@ -46,6 +46,9 @@ __PACKAGE__->belongs_to( single_track => 'DBICTest::Schema::Track', 'single_trac
     { join_type => 'left'} 
 );
 
+# add a non-left single relationship for the complex prefetch tests
+__PACKAGE__->belongs_to( existing_single_track => 'DBICTest::Schema::Track', 'single_track');
+
 __PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track' );
 __PACKAGE__->has_many(
     tags => 'DBICTest::Schema::Tag', undef,