]>
Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/Artwork.pm
1 package # hide from PAUSE
2 DBICTest
::Schema
::Artwork
;
4 use base qw
/DBIx::Class::Core/;
6 __PACKAGE__-
>table('cd_artwork');
7 __PACKAGE__-
>add_columns(
9 data_type
=> 'integer',
12 __PACKAGE__-
>set_primary_key('cd_id');
13 __PACKAGE__-
>belongs_to('cd', 'DBICTest::Schema::CD', 'cd_id');
14 __PACKAGE__-
>has_many('images', 'DBICTest::Schema::Image', 'artwork_id');
16 __PACKAGE__-
>has_many('artwork_to_artist', 'DBICTest::Schema::Artwork_to_Artist', 'artwork_cd_id');
17 __PACKAGE__-
>many_to_many('artists', 'artwork_to_artist', 'artist');
19 __PACKAGE__-
>resultset_class( __PACKAGE__
. '::ResultSet');
21 package DBICTest
::Schema
::Artwork
::ResultSet
;
23 use base
qw( DBIx::Class::ResultSet::RecursiveUpdate );
This page took 0.033682 seconds and 4 git commands to generate.