Schema/Result/NavigationAttribute.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/MessageType.pm ↑ Summary Schema/Result/NavigationAttributeValue.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::NavigationAttribute;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::NavigationAttribute
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 DESCRIPTION
14  
15 Linker table for connecting the L<Interchange6::Schema::Result::Navigation> class
16 to the <Interchange6::Schema::Result::Attribute> class records.
17  
18 =head1 ACCESSORS
19  
20 =head2 navigation_attributes_id
21  
22 Primary key.
23  
24 =cut
25  
26 2 primary_column navigation_attributes_id => {
27 data_type => "integer",
28 is_auto_increment => 1,
29 sequence => "navigation_attributes_navigation_attributes_id_seq",
30 };
31  
32 =head2 navigation_id
33  
34 Foreign key constraint on L<Interchange6::Schema::Result::Navigation/navigation_id>
35 via L</navigation> relationship.
36  
37 =cut
38  
39 2 column navigation_id => {
40 data_type => "integer",
41 is_foreign_key => 1,
42 };
43  
44 =head2 attributes_id
45  
46 Foreign key constraint on L<Interchange6::Schema::Result::Attribute/attribute_id>
47 via L</attribute> relationship.
48  
49 =cut
50  
51 2 column attributes_id => {
52 data_type => "integer",
53 is_foreign_key => 1,
54 };
55  
56 =head1 UNIQUE CONSTRAINT
57  
58 =head2 navigation_id_attributes_id
59  
60 =over 4
61  
62 =item * L</navigation_id>
63  
64 =item * L</attributes_id>
65  
66 =back
67  
68 =cut
69  
70 2 unique_constraint navigation_id_attributes_id =>
71 [qw/navigation_id attributes_id/];
72  
73 =head1 RELATIONS
74  
75 =head2 navigation
76  
77 Type: belongs_to
78  
79 Related object: L<Interchange6::Schema::Result::Navigation>
80  
81 =cut
82  
83 2 belongs_to
84 navigation => "Interchange6::Schema::Result::Navigation",
85 "navigation_id",
86 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
87  
88 =head2 attribute
89  
90 Type: belongs_to
91  
92 Related object: L<Interchange6::Schema::Result::Attribute>
93  
94 =cut
95  
96 2 belongs_to
97 attribute => "Interchange6::Schema::Result::Attribute",
98 "attributes_id",
99 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
100  
101 =head2 navigation_attribute_values
102  
103 Type: has_many
104  
105 Related object: L<Interchange6::Schema::Result::NavigationAttributeValue>
106  
107 =cut
108  
109 2 has_many
110 navigation_attribute_values =>
111 "Interchange6::Schema::Result::NavigationAttributeValue",
112 "navigation_attributes_id",
113 { cascade_copy => 0, cascade_delete => 0 };
114  
115 2 1;
« Schema/Result/MessageType.pm ↑ Summary Schema/Result/NavigationAttributeValue.pm »