Commit | Line | Data |
---|---|---|
b5c5e046 | 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 | ||
b5c5e046 | 12 | __PACKAGE__->result_source_instance->add_additional_parents( |
13 | "LoadTest::Result::Mixin" ); | |
14 | ||
15 | __PACKAGE__->add_columns( b => { data_type => 'integer' } ); | |
8b229aa6 | 16 | |
b5c5e046 | 17 | __PACKAGE__->belongs_to( |
18 | 'b_thang', | |
19 | 'LoadTest::Result::JustATable', | |
20 | { 'foreign.id' => 'self.b' }, | |
6ce50415 | 21 | ); |
7abe3af2 | 22 | |
b5c5e046 | 23 | __PACKAGE__->has_many( 'foos', 'LoadTest::Result::Foo', |
24 | { 'foreign.a' => 'self.id' } ); | |
490d5481 | 25 | |
7abe3af2 | 26 | 1; |