1 package # hide from PAUSE
6 use base qw(ViewDeps::Result::Quux);
8 __PACKAGE__->table_class('DBIx::Class::ResultSource::View');
9 __PACKAGE__->table('foo');
11 __PACKAGE__->result_source_instance->view_definition(
12 "select * from just_a_table");
14 __PACKAGE__->add_columns(
15 id => { data_type => 'integer', is_auto_increment => 1 },
16 a => { data_type => 'integer', is_nullable => 1 }
19 __PACKAGE__->set_primary_key('id');
21 __PACKAGE__->belongs_to( 'bar', 'ViewDeps::Result::Bar',
22 { 'foreign.id' => 'self.a' } );