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