]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/CollectionObject.pm
tests from multicreate
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBICTest / Schema / CollectionObject.pm
1 package # hide from PAUSE
2 DBICTest::Schema::CollectionObject;
3
4 use base qw/DBIx::Class::Core/;
5
6 __PACKAGE__->table('collection_object');
7 __PACKAGE__->add_columns(
8 'collection' => {
9 data_type => 'integer',
10 },
11 'object' => {
12 data_type => 'integer',
13 },
14 );
15 __PACKAGE__->set_primary_key(qw/collection object/);
16
17 __PACKAGE__->belongs_to( collection => "DBICTest::Schema::Collection",
18 { "foreign.collectionid" => "self.collection" }
19 );
20 __PACKAGE__->belongs_to( object => "DBICTest::Schema::TypedObject",
21 { "foreign.objectid" => "self.object" }
22 );
23
24 1;
This page took 0.033249 seconds and 4 git commands to generate.