Add test files and test for vie
[dbsrgits/DBIx-Class-Historic.git] / t / lib / ViewDeps / Result / Foo.pm
CommitLineData
6ebf5cbb 1package # hide from PAUSE
2 ViewDeps::Result::Foo;
3
4use strict;
5use warnings;
6use parent qw(DBIx::Class::Core);
7use aliased 'DBIx::Class::ResultSource::View';
8
9__PACKAGE__->table_class(View);
10
11__PACKAGE__->table('foo');
12
13__PACKAGE__->add_columns(
14 id => { data_type => 'integer', is_auto_increment => 1 },
15 a => { data_type => 'integer', is_nullable => 1 }
16);
17
18__PACKAGE__->set_primary_key('id');
19
20__PACKAGE__->belongs_to(
21 'bar',
22 'ViewDeps::Result::Bar',
23 { 'foreign.id' => 'self.a' }
24);
25
261;