]> Dogcows Code - chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate/blob - t/lib/DBSchema/Result/Twokeys_belongsto.pm
got rid of the requirement to add id => undef
[chaz/p5-DBIx-Class-ResultSet-RecursiveUpdate] / t / lib / DBSchema / Result / Twokeys_belongsto.pm
1 package DBSchema::Result::Twokeys_belongsto;
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_belongsto");
12 __PACKAGE__->add_columns(
13 "key1" => { data_type => 'integer' },
14 "key2" => { data_type => 'integer' },
15 );
16 __PACKAGE__->set_primary_key("key1", "key2");
17
18 __PACKAGE__->add_relationship('like_belongs_to', 'DBSchema::Result::Dvd', { 'foreign.twokeysfk' => 'self.key1' }, );
19
20 __PACKAGE__->belongs_to('onekey', 'DBSchema::Result::Onekey', { 'foreign.id' => 'self.key1' }, );
21
22
23 1;
24
This page took 0.035783 seconds and 4 git commands to generate.