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

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 22 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::Description;
3 $Strehler::Schema::Result::Description::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::Description
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<DESCRIPTIONS>
31  
32 =cut
33  
34 __PACKAGE__->table("DESCRIPTIONS");
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: 'integer'
47 is_foreign_key: 1
48 is_nullable: 1
49  
50 =head2 title
51  
52 data_type: 'varchar'
53 is_nullable: 1
54 size: 50
55  
56 =head2 description
57  
58 data_type: 'text'
59 is_nullable: 1
60  
61 =head2 language
62  
63 data_type: 'varchar'
64 is_nullable: 1
65 size: 2
66  
67 =cut
68  
69 __PACKAGE__->add_columns(
70 "id",
71 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72 "image",
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
74 "title",
75 { data_type => "varchar", is_nullable => 1, size => 50 },
76 "description",
77 { data_type => "text", is_nullable => 1 },
78 "language",
79 { data_type => "varchar", is_nullable => 1, size => 2 },
80 );
81  
82 =head1 PRIMARY KEY
83  
84 =over 4
85  
86 =item * L</id>
87  
88 =back
89  
90 =cut
91  
92 __PACKAGE__->set_primary_key("id");
93  
94 =head1 RELATIONS
95  
96 =head2 image
97  
98 Type: belongs_to
99  
100 Related object: L<Strehler::Schema::Result::Image>
101  
102 =cut
103  
104 __PACKAGE__->belongs_to(
105 "image",
106 "Strehler::Schema::Result::Image",
107 { id => "image" },
108 {
109 is_deferrable => 1,
110 join_type => "LEFT",
111 on_delete => "RESTRICT",
112 on_update => "RESTRICT",
113 },
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:TaC8NpZF73mckjojvxBHmg
119  
120  
121 # You can replace this text with custom code or comments, and it will be preserved on regeneration
122  
123 1;