| 1 | package DBIO::Test::Schema::CD_to_Producer; | ||
| 2 | # ABSTRACT: Test result class for the cd_to_producer table | ||
| 3 | |||
| 4 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 256 | our $VERSION = '0.900007'; | |
| 7 | |||
| 8 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 256 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 256 | __PACKAGE__->table('cd_to_producer'); | |
| 13 | 256 | __PACKAGE__->add_columns( | |
| 14 | cd => { data_type => 'integer' }, | ||
| 15 | producer => { data_type => 'integer' }, | ||
| 16 | attribute => { data_type => 'integer', is_nullable => 1 }, | ||
| 17 | ); | ||
| 18 | 256 | __PACKAGE__->set_primary_key(qw/cd producer/); | |
| 19 | |||
| 20 | # the undef condition in this rel is *deliberate* | ||
| 21 | # tests oddball legacy syntax | ||
| 22 | 256 | __PACKAGE__->belongs_to( | |
| 23 | 'cd', 'DBIO::Test::Schema::CD' | ||
| 24 | ); | ||
| 25 | |||
| 26 | 256 | __PACKAGE__->belongs_to( | |
| 27 | 'producer', 'DBIO::Test::Schema::Producer', | ||
| 28 | { 'foreign.producerid' => 'self.producer' }, | ||
| 29 | { on_delete => undef, on_update => undef }, | ||
| 30 | ); | ||
| 31 | |||
| 32 | 256 | 1; | |
| 33 | |||
| 34 | __END__ | ||