1 package # hide from PAUSE
2 DBICTest::Schema::Year2000CDs;
7 use base qw/DBICTest::Schema::CD/;
9 __PACKAGE__->table_class('DBIx::Class::ResultSource::View');
10 __PACKAGE__->table('year2000cds');
12 # need to operate on the instance for things to work
13 __PACKAGE__->result_source_instance->view_definition( sprintf (
14 'SELECT %s FROM cd WHERE year = "2000"',
15 join (', ', __PACKAGE__->columns),
18 __PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' );
19 __PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track', 'cd' );