line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::DBIx::Class::Example::Schema::Result::Phone; { |
2
|
1
|
|
|
1
|
|
6595
|
use base 'Test::DBIx::Class::Example::Schema::Result'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
387
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
__PACKAGE__->table('phone'); |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
7
|
|
|
|
|
|
|
fk_person_id => { |
8
|
|
|
|
|
|
|
data_type => 'varchar', |
9
|
|
|
|
|
|
|
size => '36', |
10
|
|
|
|
|
|
|
is_nullable => 0, |
11
|
|
|
|
|
|
|
}, |
12
|
|
|
|
|
|
|
number => { |
13
|
|
|
|
|
|
|
data_type => 'varchar', |
14
|
|
|
|
|
|
|
size => '10', |
15
|
|
|
|
|
|
|
is_nullable => 0, |
16
|
|
|
|
|
|
|
}, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('fk_person_id','number'); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
22
|
|
|
|
|
|
|
owner => 'Test::DBIx::Class::Example::Schema::Result::Person', |
23
|
|
|
|
|
|
|
{ 'foreign.person_id' => 'self.fk_person_id' }, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
} 1 |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |