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