Correctly propagate forced left joins through arrayrefs and hashrefs
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Genre.pm
1 package DBICTest::Schema::Genre;
2
3 use strict;
4
5 use base 'DBIx::Class::Core';
6
7 __PACKAGE__->table('genre');
8 __PACKAGE__->add_columns(
9     genreid => {
10       data_type => 'integer',
11       is_auto_increment => 1,
12     },
13     name => {
14       data_type => 'varchar',
15       size => 100,
16     },
17     demographicid => {
18       data_type => 'integer',
19       is_nullable => 0,
20     },
21 );
22 __PACKAGE__->set_primary_key('genreid');
23 __PACKAGE__->add_unique_constraint ( genre_name => [qw/name/] );
24
25 __PACKAGE__->has_many (cds => 'DBICTest::Schema::CD', 'genreid');
26 __PACKAGE__->belongs_to (demographic => 'DBICTest::Schema::Demographic', 'demographicid');
27
28 1;