1 package # hide from PAUSE
2 DBICTest::Schema::CD_to_Producer;
4 use base qw/DBICTest::BaseResult/;
6 __PACKAGE__->table('cd_to_producer');
7 __PACKAGE__->add_columns(
8 cd => { data_type => 'integer' },
9 producer => { data_type => 'integer' },
10 attribute => { data_type => 'integer', is_nullable => 1 },
12 __PACKAGE__->set_primary_key(qw/cd producer/);
14 __PACKAGE__->belongs_to(
15 'cd', 'DBICTest::Schema::CD',
16 { 'foreign.cdid' => 'self.cd' }
19 __PACKAGE__->belongs_to(
20 'producer', 'DBICTest::Schema::Producer',
21 { 'foreign.producerid' => 'self.producer' },
22 { on_delete => undef, on_update => undef },