]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/Producer.pm
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.036622 seconds and 4 git commands to generate.