Not sure what this part of the test is for, but it breaks custom resultsets, and...
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / CollectionObject.pm
CommitLineData
78060df8 1package # hide from PAUSE \r
2 DBICTest::Schema::CollectionObject;\r
3\r
4use base qw/DBIx::Class::Core/;\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
241;\r