Deprecate ::DBI::Sybase::MSSQL
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Collection.pm
CommitLineData
78060df8 1package # hide from PAUSE \r
2 DBICTest::Schema::Collection;\r
3\r
660cf1be 4use base qw/DBICTest::BaseResult/;\r
78060df8 5\r
6__PACKAGE__->table('collection');\r
7__PACKAGE__->add_columns(\r
8 'collectionid' => {\r
9 data_type => 'integer',\r
10 is_auto_increment => 1,\r
11 },\r
12 'name' => {\r
13 data_type => 'varchar',\r
14 size => 100,\r
15 },\r
16);\r
17__PACKAGE__->set_primary_key('collectionid');\r
18\r
19__PACKAGE__->has_many( collection_object => "DBICTest::Schema::CollectionObject",\r
20 { "foreign.collection" => "self.collectionid" }\r
21 );\r
22__PACKAGE__->many_to_many( objects => collection_object => "object" );\r
23__PACKAGE__->many_to_many( pointy_objects => collection_object => "object",\r
7141bdfc 24 { where => { "object.type" => "pointy" } }\r
78060df8 25 );\r
26__PACKAGE__->many_to_many( round_objects => collection_object => "object",\r
7141bdfc 27 { where => { "object.type" => "round" } } \r
78060df8 28 );\r
29\r
301;\r