Commit | Line | Data |
---|---|---|
c6d74d3e | 1 | package # hide from PAUSE |
2 | DBICTest::Schema::TwoKeys; | |
a02675cd | 3 | |
4 | use base 'DBIx::Class::Core'; | |
5 | ||
ff657a43 | 6 | __PACKAGE__->table('twokeys'); |
7 | __PACKAGE__->add_columns( | |
0009fa49 | 8 | 'artist' => { data_type => 'integer' }, |
9 | 'cd' => { data_type => 'integer' }, | |
10 | ); | |
ff657a43 | 11 | __PACKAGE__->set_primary_key(qw/artist cd/); |
12 | ||
13 | __PACKAGE__->belongs_to( artist => 'DBICTest::Schema::Artist' ); | |
14 | __PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD' ); | |
a02675cd | 15 | |
16 | 1; |