]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBICTest/Schema/Link.pm
test case for might_have and another minor bug fix
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBICTest / Schema / Link.pm
1 package # hide from PAUSE
2 DBICTest::Schema::Link;
3
4 use base 'DBIx::Class::Core';
5
6 use strict;
7 use warnings;
8
9 __PACKAGE__->table('link');
10 __PACKAGE__->add_columns(
11 'id' => {
12 data_type => 'integer',
13 is_auto_increment => 1
14 },
15 'url' => {
16 data_type => 'varchar',
17 size => 100,
18 is_nullable => 1,
19 },
20 'title' => {
21 data_type => 'varchar',
22 size => 100,
23 is_nullable => 1,
24 },
25 );
26 __PACKAGE__->set_primary_key('id');
27
28 use overload '""' => sub { shift->url }, fallback=> 1;
29
30 __PACKAGE__->resultset_class( __PACKAGE__ . '::ResultSet');
31
32 package DBICTest::Schema::Link::ResultSet;
33
34 use base qw( DBIx::Class::ResultSet::RecursiveUpdate );
35
36 1;
This page took 0.029056 seconds and 4 git commands to generate.