Fix an obscure regression when inserting an object with a serialize-deflating column set
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / SelfRefAlias.pm
1 package # hide from PAUSE 
2     DBICTest::Schema::SelfRefAlias;
3
4 use base qw/DBICTest::BaseResult/;
5
6 __PACKAGE__->table('self_ref_alias');
7 __PACKAGE__->add_columns(
8   'self_ref' => {
9     data_type => 'integer',
10   },
11   'alias' => {
12     data_type => 'integer',
13   },
14 );
15 __PACKAGE__->set_primary_key(qw/self_ref alias/);
16
17 __PACKAGE__->belongs_to( self_ref => 'DBICTest::Schema::SelfRef' );
18 __PACKAGE__->belongs_to( alias => 'DBICTest::Schema::SelfRef' );
19
20 1;