Deprecate ::DBI::Sybase::MSSQL
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / CollectionObject.pm
1 package # hide from PAUSE \r
2     DBICTest::Schema::CollectionObject;\r
3 \r
4 use base qw/DBICTest::BaseResult/;\r
5 \r
6 __PACKAGE__->table('collection_object');\r
7 __PACKAGE__->add_columns(\r
8   'collection' => {\r
9     data_type => 'integer',\r
10   },\r
11   'object' => {\r
12     data_type => 'integer',\r
13   },\r
14 );\r
15 __PACKAGE__->set_primary_key(qw/collection object/);\r
16 \r
17 __PACKAGE__->belongs_to( collection => "DBICTest::Schema::Collection",\r
18                          { "foreign.collectionid" => "self.collection" }\r
19                        );\r
20 __PACKAGE__->belongs_to( object => "DBICTest::Schema::TypedObject",\r
21                          { "foreign.objectid" => "self.object" }\r
22                        );\r
23 \r
24 1;\r