Fix two aliasing bugs: remove the alias when provided to new_result and add the alias...
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Agent.pm
1 package # hide from PAUSE 
2     DBICTest::Schema::Agent;
3
4 use base 'DBIx::Class::Core';
5
6 __PACKAGE__->table('agent');
7 __PACKAGE__->add_columns(
8   'agentid' => {
9     data_type         => 'integer',
10     is_auto_increment => 1
11   },
12   'label' => {
13     data_type => 'integer',
14   },
15   'name' => {
16     data_type   => 'varchar',
17     size        => 100,
18     is_nullable => 1,
19   },
20 );
21 __PACKAGE__->set_primary_key('agentid');
22
23 __PACKAGE__->has_many( artists => 'DBICTest::Schema::Artist' );
24 __PACKAGE__->belongs_to( label => 'DBICTest::Schema::Label' );
25
26 1;