Now throws exceptions when id_field is invalid or can not be determined
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / t / lib / TestApp / Schema / UserRole.pm
1 package TestApp::Schema::UserRole;
2
3 use strict;
4 use warnings;
5 use base 'DBIx::Class';
6
7 __PACKAGE__->load_components(qw/ Core /);
8
9 __PACKAGE__->table( 'user_role' );
10 __PACKAGE__->add_columns( qw/id user roleid/ );
11 __PACKAGE__->set_primary_key( qw/id/ );
12
13 __PACKAGE__->belongs_to('role', 'TestApp::Schema::Role', { 'foreign.id' => 'self.roleid'});
14
15 1;