]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - Producer.pm
8708eb76eeb27a2a431bcd52502432039b963ce7
1 package # hide from PAUSE
2 DBICTest
::Schema
::Producer
;
4 use base
'DBIx::Class::Core';
6 __PACKAGE__-
>table('producer');
7 __PACKAGE__-
>add_columns(
9 data_type
=> 'integer',
10 is_auto_increment
=> 1
13 data_type
=> 'varchar',
17 __PACKAGE__-
>set_primary_key('producerid');
18 __PACKAGE__-
>add_unique_constraint(prod_name
=> [ qw
/name/ ]);
20 __PACKAGE__-
>has_many(
21 producer_to_cd
=> 'DBICTest::Schema::CD_to_Producer' => 'producer'
23 __PACKAGE__-
>many_to_many('cds', 'producer_to_cd', 'cd');
25 __PACKAGE__-
>resultset_class( __PACKAGE__
. '::ResultSet');
27 package DBICTest
::Schema
::Producer
::ResultSet
;
29 use base
qw( DBIx::Class::ResultSet::RecursiveUpdate );
This page took 0.033456 seconds and 3 git commands to generate.