]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/TypedObject.pm
test case for might_have and another minor bug fix
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBICTest / Schema / TypedObject.pm
1 package # hide from PAUSE
2 DBICTest::Schema::TypedObject;
3
4 use base qw/DBIx::Class::Core/;
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
28 1;
This page took 0.030045 seconds and 4 git commands to generate.