1 package # hide from PAUSE
2 DBICTest::Schema::CD_to_Producer;
7 use base qw/DBICTest::BaseResult/;
9 __PACKAGE__->table('cd_to_producer');
10 __PACKAGE__->add_columns(
11 cd => { data_type => 'integer' },
12 producer => { data_type => 'integer' },
13 attribute => { data_type => 'integer', is_nullable => 1 },
15 __PACKAGE__->set_primary_key(qw/cd producer/);
17 __PACKAGE__->belongs_to(
18 'cd', 'DBICTest::Schema::CD',
19 { 'foreign.cdid' => 'self.cd' }
22 __PACKAGE__->belongs_to(
23 'producer', 'DBICTest::Schema::Producer',
24 { 'foreign.producerid' => 'self.producer' },
25 { on_delete => undef, on_update => undef },