1 package # hide from PAUSE
2 DBICTest::Schema::TwoKeys;
4 use base 'DBIx::Class::Core';
6 __PACKAGE__->table('twokeys');
7 __PACKAGE__->add_columns(
8 'artist' => { data_type => 'integer' },
9 'cd' => { data_type => 'integer' },
11 __PACKAGE__->set_primary_key(qw/artist cd/);
13 __PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' );
14 __PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' );
16 __PACKAGE__->has_many(
17 'fourkeys_to_twokeys', 'DBICTest::Schema::FourKeys_to_TwoKeys', {
18 'foreign.t_artist' => 'self.artist',
19 'foreign.t_cd' => 'self.cd',
22 __PACKAGE__->many_to_many(
23 'fourkeys', 'fourkeys_to_twokeys', 'fourkeys',