]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/Genre.pm
test case for might_have and another minor bug fix
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBICTest / Schema / Genre.pm
1 package DBICTest::Schema::Genre;
2
3 use strict;
4
5 use base 'DBIx::Class::Core';
6
7 __PACKAGE__->table('genre');
8 __PACKAGE__->add_columns(
9 genreid => {
10 data_type => 'integer',
11 is_auto_increment => 1,
12 },
13 name => {
14 data_type => 'varchar',
15 size => 100,
16 },
17 );
18 __PACKAGE__->set_primary_key('genreid');
19 __PACKAGE__->add_unique_constraint ( genre_name => [qw/name/] );
20
21 __PACKAGE__->has_many (cds => 'DBICTest::Schema::CD', 'genreid');
22
23 __PACKAGE__->resultset_class( __PACKAGE__ . '::ResultSet');
24
25 package DBICTest::Schema::Genre::ResultSet;
26
27 use base qw( DBIx::Class::ResultSet::RecursiveUpdate );
28
29
30 1;
This page took 0.031032 seconds and 4 git commands to generate.