1 package # hide from PAUSE
6 use parent qw(DBIx::Class::Core);
7 use aliased 'DBIx::Class::ResultSource::View';
9 __PACKAGE__->table_class(View);
10 __PACKAGE__->table('foo');
11 __PACKAGE__->add_columns(
12 id => { data_type => 'integer', is_auto_increment => 1 },
13 a => { data_type => 'integer', is_nullable => 1 }
16 __PACKAGE__->set_primary_key('id');
18 __PACKAGE__->belongs_to( 'bar', 'ViewDeps::Result::Bar',
19 { 'foreign.id' => 'self.a' } );