]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/CD_to_Producer.pm
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' },
21 { on_delete
=> undef, on_update
=> undef },
24 __PACKAGE__-
>resultset_class( __PACKAGE__
. '::ResultSet');
26 package DBICTest
::Schema
::CD_to_Producer
::ResultSet
;
28 use base
qw( DBIx::Class::ResultSet::RecursiveUpdate );
This page took 0.038536 seconds and 4 git commands to generate.