Schema/Result/NavigationMessage.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/NavigationAttributeValue.pm ↑ Summary Schema/Result/NavigationProduct.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::NavigationMessage;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::NavigationMessage
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 DESCRIPTION
14  
15 Link table between Navigation and Message for blogs, etc
16  
17 =cut
18  
19 =head1 ACCESSORS
20  
21 =head2 messages_id
22  
23 Foreign key constraint on L<Interchange6::Schema::Result::Message/messages_id>
24 via L</message> relationship.
25  
26 =cut
27  
28 2 column messages_id => {
29 data_type => "integer",
30 };
31  
32 =head2 navigation_id
33  
34 Foreign key constraint on
35 L<Interchange6::Schema::Result::Navigation/navigation_id>
36 via L</navigation> relationship.
37  
38 =cut
39  
40 2 column navigation_id => {
41 data_type => "integer",
42 };
43  
44 =head1 PRIMARY KEY
45  
46 =over 4
47  
48 =item * L</messages_id>
49  
50 =item * L</navigation_id>
51  
52 =back
53  
54 =cut
55  
56 2 primary_key "messages_id", "navigation_id";
57  
58 =head1 RELATIONS
59  
60 =head2 message
61  
62 Type: belongs_to
63  
64 Related object: L<Interchange6::Schema::Result::Message>
65  
66 =cut
67  
68 2 belongs_to
69 message => "Interchange6::Schema::Result::Message",
70 "messages_id",
71 { cascade_delete => 1 };
72  
73 =head2 navigation
74  
75 Type: belongs_to
76  
77 Related object: L<Interchange6::Schema::Result::Navigation>
78  
79 =cut
80  
81 2 belongs_to
82 navigation => "Interchange6::Schema::Result::Navigation",
83 "navigation_id";
84  
85 2 1;
« Schema/Result/NavigationAttributeValue.pm ↑ Summary Schema/Result/NavigationProduct.pm »