Commit | Line | Data |
---|---|---|
1e70d9dc | 1 | package # hide from PAUSE |
2 | ViewDeps::Result::Baz; | |
3 | ## Used in 105view_deps.t | |
4 | ||
5 | use strict; | |
6 | use warnings; | |
7 | use 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 | ||
22 | 1; |