Some test suite corrections ahead of next commits
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Year2000CDs.pm
CommitLineData
0d9fc72b 1package # hide from PAUSE
a648ec78 2 DBICTest::Schema::Year2000CDs;
3
4a233f30 4use warnings;
5use strict;
6
0d9fc72b 7use base qw/DBICTest::Schema::CD/;
a648ec78 8
4c905568 9# FIXME not entirely sure *why* this particular bit trips up tests
10# and even more mysteriously: only a single oracle test...
11# Running out of time and no local Oracle so can't investigate :/
12use mro 'c3';
13
030c27ad 14__PACKAGE__->table_class('DBIx::Class::ResultSource::View');
084a2c0a 15__PACKAGE__->table('year2000cds');
a648ec78 16
0d9fc72b 17# need to operate on the instance for things to work
18__PACKAGE__->result_source_instance->view_definition( sprintf (
954ce404 19 "SELECT %s FROM cd WHERE year = '2000'",
0d9fc72b 20 join (', ', __PACKAGE__->columns),
21));
a648ec78 22
59d89269 23__PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' );
98fcc1c0 24__PACKAGE__->has_many( tracks => 'DBICTest::Schema::Track', 'cd' );
59d89269 25
a648ec78 261;