Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / MyFilm.pm
CommitLineData
8273e845 1package # hide from PAUSE
c6d74d3e 2 MyFilm;
ea2e61bf 3
4a233f30 4use warnings;
5use strict;
6
ea2e61bf 7use base 'MyBase';
8use MyStarLink;
9
ea2e61bf 10__PACKAGE__->set_table();
11__PACKAGE__->columns(All => qw/filmid title/);
12__PACKAGE__->has_many(_stars => 'MyStarLink');
13__PACKAGE__->columns(Stringify => 'title');
14
15sub _carp { }
16
17sub stars { map $_->star, shift->_stars }
18
19sub create_sql {
6a3bf251 20 return qq{
ea2e61bf 21 filmid TINYINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
22 title VARCHAR(255)
23 };
24}
25
261;
27