Schema/Result/NavigationAttributeValue.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/NavigationAttribute.pm ↑ Summary Schema/Result/NavigationProduct.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::NavigationAttributeValue;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::NavigationAttributeValue
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 ACCESSORS
14  
15 =head2 navigation_attribute_values_id
16  
17 Primary key.
18  
19 =cut
20  
21 2 primary_column navigation_attribute_values_id => {
22 data_type => "integer",
23 is_auto_increment => 1,
24 };
25  
26 =head2 navigation_attributes_id
27  
28 FK on L<Interchange6::Schema::Result::NavigationAttribute/navigation_attributes_id>.
29  
30 =cut
31  
32 2 column navigation_attributes_id =>
33 { data_type => "integer", is_foreign_key => 1 };
34  
35 =head2 attribute_values_id
36  
37 FK on L<Interchange6::Schema::Result::AttributeValue/attribute_values_id>.
38  
39 =cut
40  
41 2 column attribute_values_id =>
42 { data_type => "integer", is_foreign_key => 1 };
43  
44 =head1 RELATIONS
45  
46 =head2 navigation_attribute
47  
48 Type: belongs_to
49  
50 Related object: L<Interchange6::Schema::Result::NavigationAttribute>
51  
52 =cut
53  
54 2 belongs_to
55 navigation_attribute => "Interchange6::Schema::Result::NavigationAttribute",
56 "navigation_attributes_id",
57 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
58  
59 =head2 attribute_value
60  
61 Type: belongs_to
62  
63 Related object: L<Interchange6::Schema::Result::AttributeValue>
64  
65 =cut
66  
67 2 belongs_to
68 attribute_value => "Interchange6::Schema::Result::AttributeValue",
69 "attribute_values_id",
70 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
71  
72 2 1;
« Schema/Result/NavigationAttribute.pm ↑ Summary Schema/Result/NavigationProduct.pm »