Trailing WS crusade - got to save them bits
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / TypedObject.pm
CommitLineData
8273e845 1package # hide from PAUSE
78060df8 2 DBICTest::Schema::TypedObject;
3
660cf1be 4use base qw/DBICTest::BaseResult/;
78060df8 5
6__PACKAGE__->table('typed_object');
7__PACKAGE__->add_columns(
8 'objectid' => {
9 data_type => 'integer',
10 is_auto_increment => 1,
11 },
12 'type' => {
13 data_type => 'varchar',
14 size => '100',
15 },
16 'value' => {
17 data_type => 'varchar',
18 size => 100,
19 },
20);
21__PACKAGE__->set_primary_key('objectid');
22
23__PACKAGE__->has_many( collection_object => "DBICTest::Schema::CollectionObject",
24 { "foreign.object" => "self.objectid" }
25 );
26__PACKAGE__->many_to_many( collections => collection_object => "collection" );
27
281;