blib/lib/Strehler/Schema/Result/Image.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package Strehler::Schema::Result::Image;
3 $Strehler::Schema::Result::Image::VERSION = '1.6.8';
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Strehler::Schema::Result::Image
10  
11 =cut
12  
13 use strict;
14 use warnings;
15  
16 use base 'DBIx::Class::Core';
17  
18 =head1 COMPONENTS LOADED
19  
20 =over 4
21  
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23  
24 =back
25  
26 =cut
27  
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<IMAGES>
31  
32 =cut
33  
34 __PACKAGE__->table("IMAGES");
35  
36 =head1 ACCESSORS
37  
38 =head2 id
39  
40 data_type: 'integer'
41 is_auto_increment: 1
42 is_nullable: 0
43  
44 =head2 image
45  
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 50
49  
50 =head2 category
51  
52 data_type: 'integer'
53 is_foreign_key: 1
54 is_nullable: 1
55  
56 =cut
57  
58 __PACKAGE__->add_columns(
59 "id",
60 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61 "image",
62 { data_type => "varchar", is_nullable => 1, size => 50 },
63 "category",
64 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
65 );
66  
67 =head1 PRIMARY KEY
68  
69 =over 4
70  
71 =item * L</id>
72  
73 =back
74  
75 =cut
76  
77 __PACKAGE__->set_primary_key("id");
78  
79 =head1 RELATIONS
80  
81 =head2 category
82  
83 Type: belongs_to
84  
85 Related object: L<Strehler::Schema::Result::Category>
86  
87 =cut
88  
89 __PACKAGE__->belongs_to(
90 "category",
91 "Strehler::Schema::Result::Category",
92 { id => "category" },
93 {
94 is_deferrable => 1,
95 join_type => "LEFT",
96 on_delete => "RESTRICT",
97 on_update => "RESTRICT",
98 },
99 );
100  
101 =head2 descriptions
102  
103 Type: has_many
104  
105 Related object: L<Strehler::Schema::Result::Description>
106  
107 =cut
108  
109 __PACKAGE__->has_many(
110 "descriptions",
111 "Strehler::Schema::Result::Description",
112 { "foreign.image" => "self.id" },
113 { cascade_copy => 0, cascade_delete => 0 },
114 );
115  
116  
117 # Created by DBIx::Class::Schema::Loader v0.07037 @ 2014-03-15 15:14:27
118 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1uSlqlTeNhTj88WFOEUbUA
119  
120  
121 # You can replace this text with custom code or comments, and it will be preserved on regeneration
122  
123  
124 1;