Commit | Line | Data |
c6d74d3e |
1 | package # hide from PAUSE |
2 | DBICTest::Schema::CD_to_Producer; |
30a8108e |
3 | |
4 | use base 'DBIx::Class::Core'; |
5 | |
6 | __PACKAGE__->table('cd_to_producer'); |
0009fa49 |
7 | __PACKAGE__->add_columns( |
8 | cd => { data_type => 'integer' }, |
9 | producer => { data_type => 'integer' }, |
ac36a402 |
10 | attribute => { data_type => 'integer', is_nullable => 1 }, |
0009fa49 |
11 | ); |
30a8108e |
12 | __PACKAGE__->set_primary_key(qw/cd producer/); |
13 | |
ff657a43 |
14 | __PACKAGE__->belongs_to( |
15 | 'cd', 'DBICTest::Schema::CD', |
16 | { 'foreign.cdid' => 'self.cd' } |
17 | ); |
18 | |
19 | __PACKAGE__->belongs_to( |
20 | 'producer', 'DBICTest::Schema::Producer', |
87310237 |
21 | { 'foreign.producerid' => 'self.producer' }, |
22 | { on_delete => undef, on_update => undef }, |
ff657a43 |
23 | ); |
24 | |
30a8108e |
25 | 1; |