Fixed DBICTest Schema class names, added class_resolver system to make them work
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / Artist.pm
CommitLineData
11b78bd6 1package DBICTest::Schema::Artist;
a02675cd 2
3use base 'DBIx::Class::Core';
4
11b78bd6 5DBICTest::Schema::Artist->table('artist');
6DBICTest::Schema::Artist->add_columns(qw/artistid name/);
7DBICTest::Schema::Artist->set_primary_key('artistid');
8DBICTest::Schema::Artist->add_relationship(
9 cds => 'DBICTest::Schema::CD',
a02675cd 10 { 'foreign.artist' => 'self.artistid' },
11 { order_by => 'year' }
12);
11b78bd6 13DBICTest::Schema::Artist->add_relationship(
14 twokeys => 'DBICTest::Schema::TwoKeys',
a02675cd 15 { 'foreign.artist' => 'self.artistid' }
16);
11b78bd6 17DBICTest::Schema::Artist->add_relationship(
18 onekeys => 'DBICTest::Schema::OneKey',
a02675cd 19 { 'foreign.artist' => 'self.artistid' }
20);
21
221;