Commit | Line | Data |
8273e845 |
1 | package # hide from PAUSE |
65c2b042 |
2 | DBICTest::Schema::SelfRefAlias; |
3 | |
4a233f30 |
4 | use warnings; |
5 | use strict; |
6 | |
65c2b042 |
7 | use base qw/DBICTest::BaseResult/; |
8 | |
9 | __PACKAGE__->table('self_ref_alias'); |
10 | __PACKAGE__->add_columns( |
11 | 'self_ref' => { |
12 | data_type => 'integer', |
13 | }, |
14 | 'alias' => { |
15 | data_type => 'integer', |
16 | }, |
17 | ); |
18 | __PACKAGE__->set_primary_key(qw/self_ref alias/); |
19 | |
20 | __PACKAGE__->belongs_to( self_ref => 'DBICTest::Schema::SelfRef' ); |
21 | __PACKAGE__->belongs_to( alias => 'DBICTest::Schema::SelfRef' ); |
22 | |
23 | 1; |