Add another test class to viewdeps stuff.
[dbsrgits/DBIx-Class.git] / t / lib / ViewDeps / Result / Baz.pm
CommitLineData
1e70d9dc 1package # hide from PAUSE
2 ViewDeps::Result::Baz;
3## Used in 105view_deps.t
4
5use strict;
6use warnings;
7use parent qw(DBIx::Class::Core);
8
9__PACKAGE__->table('bar');
10
11__PACKAGE__->add_columns( id => { data_type => 'integer' } );
12
13__PACKAGE__->belongs_to(
14 'table',
15 'ViewDeps::Result::JustATable',
16 { 'foreign.id' => 'self.b' },
17);
18
19__PACKAGE__->has_many( 'foos', 'ViewDeps::Result::Foo',
20 { 'foreign.a' => 'self.id' } );
21
221;