File Coverage

blib/lib/Interchange6/Schema/Result/MediaNavigation.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1 2     2   1180 use utf8;
  2         6  
  2         32  
2              
3             package Interchange6::Schema::Result::MediaNavigation;
4              
5             =head1 NAME
6              
7             Interchange6::Schema::Result::MediaNavigation
8              
9             =cut
10              
11 2     2   92 use Interchange6::Schema::Candy;
  2         8  
  2         12  
12              
13             =head1 ACCESSORS
14              
15             =head2 media_id
16              
17             FK on L<Interchange6::Schema::Result::Media/media_id>.
18              
19             =cut
20              
21             column media_id => { data_type => "integer" };
22              
23             =head2 navigation_id
24              
25             FK on L<Interchange6::Schema::Result::Navigation/navigation_id>.
26              
27             =cut
28              
29             column navigation_id => { data_type => "integer" };
30              
31             =head1 PRIMARY KEY
32              
33             =over 4
34              
35             =item * L</media_id>
36              
37             =item * L</navigation_id>
38              
39             =back
40              
41             =cut
42              
43             primary_key "media_id", "navigation_id";
44              
45             =head1 RELATIONS
46              
47             =head2 media
48              
49             Type: belongs_to
50              
51             Related object: L<Interchange6::Schema::Result::Media>
52              
53             =cut
54              
55             belongs_to
56             media => "Interchange6::Schema::Result::Media",
57             "media_id";
58              
59             =head2 navigation
60              
61             Type: belongs_to
62              
63             Related object: L<Interchange6::Schema::Result::Navigation>
64              
65             =cut
66              
67             belongs_to
68             navigation => "Interchange6::Schema::Result::Navigation",
69             "navigation_id";
70              
71             1;