Reverted andyg's fixes to DBI.pm, updated tests accordingly.
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CD.pm
CommitLineData
11b78bd6 1package DBICTest::Schema::CD;
a02675cd 2
3use base 'DBIx::Class::Core';
4
11b78bd6 5DBICTest::Schema::CD->table('cd');
6DBICTest::Schema::CD->add_columns(qw/cdid artist title year/);
7DBICTest::Schema::CD->set_primary_key('cdid');
8DBICTest::Schema::CD->add_relationship(
9 artist => 'DBICTest::Schema::Artist',
a02675cd 10 { 'foreign.artistid' => 'self.artist' }
11);
11b78bd6 12DBICTest::Schema::CD->add_relationship(
13 tracks => 'DBICTest::Schema::Track',
a02675cd 14 { 'foreign.cd' => 'self.cdid' }
15);
11b78bd6 16DBICTest::Schema::CD->add_relationship(
17 tags => 'DBICTest::Schema::Tag',
a02675cd 18 { 'foreign.cd' => 'self.cdid' }
19);
11b78bd6 20#DBICTest::Schema::CD->might_have(liner_notes => 'DBICTest::Schema::LinerNotes' => qw/notes/);
a02675cd 21
221;