Commit | Line | Data |
b5c5e046 |
1 | package # hide from PAUSE |
2 | LoadTest::Result::Foo; |
7abe3af2 |
3 | |
4 | use strict; |
5 | use warnings; |
b5c5e046 |
6 | use parent 'DBIx::Class::Core'; |
7 | use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance' => 'MTI'; |
7abe3af2 |
8 | |
b5c5e046 |
9 | __PACKAGE__->table_class(MTI); |
7abe3af2 |
10 | __PACKAGE__->table('foo'); |
11 | |
12 | __PACKAGE__->add_columns( |
b5c5e046 |
13 | id => { data_type => 'integer', is_auto_increment => 1 }, |
14 | a => { data_type => 'integer', is_nullable => 1 } |
7abe3af2 |
15 | ); |
16 | |
17 | __PACKAGE__->set_primary_key('id'); |
18 | |
b5c5e046 |
19 | __PACKAGE__->belongs_to( 'bar', 'LoadTest::Result::Bar', |
20 | { 'foreign.id' => 'self.a' } ); |
490d5481 |
21 | |
7abe3af2 |
22 | 1; |