1 package # hide from PAUSE
\r
2 DBICTest::Schema::CollectionObject;
\r
4 use base qw/DBICTest::BaseResult/;
\r
6 __PACKAGE__->table('collection_object');
\r
7 __PACKAGE__->add_columns(
\r
9 data_type => 'integer',
\r
12 data_type => 'integer',
\r
15 __PACKAGE__->set_primary_key(qw/collection object/);
\r
17 __PACKAGE__->belongs_to( collection => "DBICTest::Schema::Collection",
\r
18 { "foreign.collectionid" => "self.collection" }
\r
20 __PACKAGE__->belongs_to( object => "DBICTest::Schema::TypedObject",
\r
21 { "foreign.objectid" => "self.object" }
\r