Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / CollectionObject.pm
1 package # hide from PAUSE
2     DBICTest::Schema::CollectionObject;
3
4 use warnings;
5 use strict;
6
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;