1 package # hide from PAUSE
2 DBICTest::Schema::CD_to_Producer;
4 use base 'DBIx::Class::Core';
6 __PACKAGE__->table('cd_to_producer');
7 __PACKAGE__->add_columns(
8 cd => { data_type => 'integer' },
9 producer => { data_type => 'integer' },
11 __PACKAGE__->set_primary_key(qw/cd producer/);
13 __PACKAGE__->belongs_to(
14 'cd', 'DBICTest::Schema::CD',
15 { 'foreign.cdid' => 'self.cd' }
18 __PACKAGE__->belongs_to(
19 'producer', 'DBICTest::Schema::Producer',
20 { 'foreign.producerid' => 'self.producer' }