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