rel copying. weird recursive dependency problem though.
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / MTITest / Result / Bar.pm
CommitLineData
7abe3af2 1package MTITest::Result::Bar;
2
3use strict;
4use warnings;
5use parent qw(MTITest::Result::Foo);
6
7__PACKAGE__->table('bar');
8
9__PACKAGE__->add_columns(
10 b => { data_type => 'integer' }
11);
12
490d5481 13__PACKAGE__->belongs_to(
14 'b_thang',
15 'MTITest::Result::JustATable',
16 { 'foreign.id' => 'self.b' },
17);
18
19__PACKAGE__->has_many(
20 'foos',
21 'MTITest::Result::Foo',
22 { 'foreign.a' => 'self.id' }
23);
24
7abe3af2 251;