added more many_to_many tests and changed add_to_rel to accept linking table column...
[dbsrgits/DBIx-Class-Historic.git] / t / testlib / MyStar.pm
CommitLineData
c6d74d3e 1package # hide from PAUSE
2 MyStar;
ea2e61bf 3
4BEGIN { unshift @INC, './t/testlib'; }
5use base 'MyBase';
6
7use strict;
8
9__PACKAGE__->set_table();
10__PACKAGE__->columns(All => qw/starid name/);
11__PACKAGE__->has_many(films => [ MyStarLink => 'film' ]);
12
13# sub films { map $_->film, shift->_films }
14
15sub create_sql {
16 return qq{
17 starid TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
18 name VARCHAR(255)
19 };
20}
21
221;
23