Commit | Line | Data |
---|---|---|
3365fc70 | 1 | package # hide from PAUSE |
2 | LoadTest::Result::Bar; | |
7abe3af2 | 3 | |
4 | use strict; | |
5 | use warnings; | |
3365fc70 | 6 | use parent 'LoadTest::Result::Foo'; |
7abe3af2 | 7 | |
4eaa25b5 | 8 | require LoadTest::Result::Mixin; |
8b229aa6 | 9 | |
7abe3af2 | 10 | __PACKAGE__->table('bar'); |
11 | ||
8b229aa6 | 12 | __PACKAGE__->result_source_instance->add_additional_parent( |
4eaa25b5 | 13 | LoadTest::Result::Mixin->result_source_instance |
6ce50415 | 14 | ); |
8b229aa6 | 15 | |
6ce50415 | 16 | __PACKAGE__->add_columns( |
17 | b => { data_type => 'integer' } | |
18 | ); | |
7abe3af2 | 19 | |
3365fc70 | 20 | #__PACKAGE__->belongs_to( |
21 | #'b_thang', | |
22 | #'LoadTest::Result::JustATable', | |
23 | #{ 'foreign.id' => 'self.b' }, | |
24 | #); | |
25 | ||
26 | #__PACKAGE__->has_many( | |
27 | #'foos', | |
28 | #'LoadTest::Result::Foo', | |
29 | #{ 'foreign.a' => 'self.id' } | |
30 | #); | |
490d5481 | 31 | |
7abe3af2 | 32 | 1; |