Schema/Result/ProductReview.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/ProductAttributeValue.pm ↑ Summary Schema/Result/Role.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::ProductReview;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::ProductReview
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 Product and Message for product reviews.
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 is_foreign_key => 1
31 };
32  
33 =head2 sku
34  
35 Foreign key constraint on L<Interchange6::Schema::Result::Product/sku>
36 via L</product> relationship.
37  
38 =cut
39  
40 2 column sku => {
41 data_type => "varchar",
42 size => 64,
43 is_foreign_key => 1,
44 };
45  
46 =head1 PRIMARY KEY
47  
48 =over 4
49  
50 =item * L</messages_id>
51  
52 =item * L</sku>
53  
54 =back
55  
56 =cut
57  
58 2 primary_key "messages_id", "sku";
59  
60 =head1 RELATIONS
61  
62 =head2 message
63  
64 Type: belongs_to
65  
66 Related object: L<Interchange6::Schema::Result::Message>
67  
68 =cut
69  
70 2 belongs_to
71 message => "Interchange6::Schema::Result::Message",
72 "messages_id",
73 { cascade_delete => 1 };
74  
75 =head2 product
76  
77 Type: belongs_to
78  
79 Related object: L<Interchange6::Schema::Result::Product>
80  
81 =cut
82  
83 2 belongs_to product => "Interchange6::Schema::Result::Product", "sku";
84  
85 2 1;
« Schema/Result/ProductAttributeValue.pm ↑ Summary Schema/Result/Role.pm »