Refactor tests a little bit.
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / LoadTest / Result / Foo.pm
CommitLineData
4eaa25b5 1package LoadTest::Result::Foo;
7abe3af2 2
3use strict;
4use warnings;
5use parent qw(DBIx::Class::Core);
6use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance';
7
8__PACKAGE__->table_class(MultipleTableInheritance);
9
10__PACKAGE__->table('foo');
11
12__PACKAGE__->add_columns(
6ce50415 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
6ce50415 19__PACKAGE__->belongs_to(
20 'bar',
4eaa25b5 21 'LoadTest::Result::Bar',
6ce50415 22 { 'foreign.id' => 'self.a' }
23);
490d5481 24
7abe3af2 251;