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