| 1 | package DBIO::Test::Schema::CollectionObject; | ||
| 2 | # ABSTRACT: Test result class for the collection_object table | ||
| 3 | |||
| 4 | 256 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 256 | our $VERSION = '0.900007'; | |
| 7 | |||
| 8 | 256 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 256 | ▶ | use base qw/DBIO::Test::BaseResult/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 256 | __PACKAGE__->table('collection_object'); | |
| 13 | 256 | __PACKAGE__->add_columns( | |
| 14 | 'collection' => { | ||
| 15 | data_type => 'integer', | ||
| 16 | }, | ||
| 17 | 'object' => { | ||
| 18 | data_type => 'integer', | ||
| 19 | }, | ||
| 20 | ); | ||
| 21 | 256 | __PACKAGE__->set_primary_key(qw/collection object/); | |
| 22 | |||
| 23 | 256 | __PACKAGE__->belongs_to( collection => "DBIO::Test::Schema::Collection", | |
| 24 | { "foreign.collectionid" => "self.collection" } | ||
| 25 | ); | ||
| 26 | 256 | __PACKAGE__->belongs_to( object => "DBIO::Test::Schema::TypedObject", | |
| 27 | { "foreign.objectid" => "self.object" } | ||
| 28 | ); | ||
| 29 | |||
| 30 | 256 | 1; | |
| 31 | |||
| 32 | __END__ | ||