Commit | Line | Data |
8273e845 |
1 | package # hide from PAUSE |
65c2b042 |
2 | DBICTest::Schema::CollectionObject; |
3 | |
4a233f30 |
4 | use warnings; |
5 | use strict; |
6 | |
65c2b042 |
7 | use base qw/DBICTest::BaseResult/; |
8 | |
9 | __PACKAGE__->table('collection_object'); |
10 | __PACKAGE__->add_columns( |
11 | 'collection' => { |
12 | data_type => 'integer', |
13 | }, |
14 | 'object' => { |
15 | data_type => 'integer', |
16 | }, |
17 | ); |
18 | __PACKAGE__->set_primary_key(qw/collection object/); |
19 | |
20 | __PACKAGE__->belongs_to( collection => "DBICTest::Schema::Collection", |
21 | { "foreign.collectionid" => "self.collection" } |
22 | ); |
23 | __PACKAGE__->belongs_to( object => "DBICTest::Schema::TypedObject", |
24 | { "foreign.objectid" => "self.object" } |
25 | ); |
26 | |
27 | 1; |