add_relationship without the accessor attribute is invalid
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBSchema / Result / Twokeys.pm
1 package DBSchema::Result::Twokeys;
2
3 # Created by DBIx::Class::Schema::Loader v0.03000 @ 2006-10-02 08:24:09
4
5 use strict;
6 use warnings;
7
8 use base 'DBIx::Class';
9
10 __PACKAGE__->load_components("PK::Auto", "Core");
11 __PACKAGE__->table("twokeys");
12 __PACKAGE__->add_columns(
13 "dvd_name" => { data_type => 'varchar', size => 100 },
14 "key2" => { data_type => 'integer' },
15 );
16 __PACKAGE__->set_primary_key("dvd_name", "key2");
17
18 __PACKAGE__->add_relationship('like_belongs_to', 'DBSchema::Result::Dvd', { 'foreign.name' => 'self.dvd_name' }, { accessor => 'single' });
19
20
21 1;
22
This page took 0.030478 seconds and 4 git commands to generate.