fixup for stringify that can be false in find_or_create_related
[dbsrgits/DBIx-Class.git] / 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__->load_components(qw/PK::Auto Core/);
10 __PACKAGE__->table('link');
11 __PACKAGE__->add_columns(
12     'id' => {
13         data_type => 'integer',
14         is_auto_increment => 1
15     },
16     'url' => {
17         data_type => 'varchar',
18         size      => 100,
19         is_nullable => 1,
20     },
21     'title' => {
22         data_type => 'varchar',
23         size      => 100,
24         is_nullable => 1,
25     },
26 );
27 __PACKAGE__->set_primary_key('id');
28
29 use overload '""' => sub { shift->url }, fallback=> 1;
30
31 1;