Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / TypedObject.pm
1 package # hide from PAUSE
2     DBICTest::Schema::TypedObject;
3
4 use warnings;
5 use strict;
6
7 use base qw/DBICTest::BaseResult/;
8
9 __PACKAGE__->table('typed_object');
10 __PACKAGE__->add_columns(
11   'objectid' => {
12     data_type => 'integer',
13     is_auto_increment => 1,
14   },
15   'type' => {
16     data_type => 'varchar',
17     size      => '100',
18   },
19   'value' => {
20     data_type => 'varchar',
21     size      => 100,
22   },
23 );
24 __PACKAGE__->set_primary_key('objectid');
25
26 __PACKAGE__->has_many( collection_object => "DBICTest::Schema::CollectionObject",
27                        { "foreign.object" => "self.objectid" }
28                      );
29 __PACKAGE__->many_to_many( collections => collection_object => "collection" );
30
31 1;