File Coverage

blib/lib/Bio/Chado/Schema/Result/Genetic/PhenotypeComparison.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Bio::Chado::Schema::Result::Genetic::PhenotypeComparison;
2             BEGIN {
3 6     6   2647 $Bio::Chado::Schema::Result::Genetic::PhenotypeComparison::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   102 $Bio::Chado::Schema::Result::Genetic::PhenotypeComparison::VERSION = '0.08001'; # TRIAL
7             }
8              
9             # Created by DBIx::Class::Schema::Loader
10             # DO NOT MODIFY THE FIRST PART OF THIS FILE
11              
12 6     6   37 use strict;
  6         14  
  6         155  
13 6     6   30 use warnings;
  6         14  
  6         129  
14              
15 6     6   43 use base 'DBIx::Class::Core';
  6         14  
  6         1788  
16              
17              
18              
19             __PACKAGE__->table("phenotype_comparison");
20              
21              
22             __PACKAGE__->add_columns(
23             "phenotype_comparison_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "phenotype_comparison_phenotype_comparison_id_seq",
29             },
30             "genotype1_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "environment1_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "genotype2_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
36             "environment2_id",
37             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
38             "phenotype1_id",
39             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
40             "phenotype2_id",
41             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
42             "pub_id",
43             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44             "organism_id",
45             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
46             );
47             __PACKAGE__->set_primary_key("phenotype_comparison_id");
48             __PACKAGE__->add_unique_constraint(
49             "phenotype_comparison_c1",
50             [
51             "genotype1_id",
52             "environment1_id",
53             "genotype2_id",
54             "environment2_id",
55             "phenotype1_id",
56             "pub_id",
57             ],
58             );
59              
60              
61             __PACKAGE__->belongs_to(
62             "environment2",
63             "Bio::Chado::Schema::Result::Genetic::Environment",
64             { environment_id => "environment2_id" },
65             {
66             cascade_copy => 0,
67             cascade_delete => 0,
68             is_deferrable => 1,
69             on_delete => "CASCADE",
70             on_update => "CASCADE",
71             },
72             );
73              
74              
75             __PACKAGE__->belongs_to(
76             "genotype1",
77             "Bio::Chado::Schema::Result::Genetic::Genotype",
78             { genotype_id => "genotype1_id" },
79             {
80             cascade_copy => 0,
81             cascade_delete => 0,
82             is_deferrable => 1,
83             on_delete => "CASCADE",
84             on_update => "CASCADE",
85             },
86             );
87              
88              
89             __PACKAGE__->belongs_to(
90             "phenotype1",
91             "Bio::Chado::Schema::Result::Phenotype::Phenotype",
92             { phenotype_id => "phenotype1_id" },
93             {
94             cascade_copy => 0,
95             cascade_delete => 0,
96             is_deferrable => 1,
97             on_delete => "CASCADE",
98             on_update => "CASCADE",
99             },
100             );
101              
102              
103             __PACKAGE__->belongs_to(
104             "environment1",
105             "Bio::Chado::Schema::Result::Genetic::Environment",
106             { environment_id => "environment1_id" },
107             {
108             cascade_copy => 0,
109             cascade_delete => 0,
110             is_deferrable => 1,
111             on_delete => "CASCADE",
112             on_update => "CASCADE",
113             },
114             );
115              
116              
117             __PACKAGE__->belongs_to(
118             "phenotype2",
119             "Bio::Chado::Schema::Result::Phenotype::Phenotype",
120             { phenotype_id => "phenotype2_id" },
121             {
122             cascade_copy => 0,
123             cascade_delete => 0,
124             is_deferrable => 1,
125             join_type => "LEFT",
126             on_delete => "CASCADE",
127             on_update => "CASCADE",
128             },
129             );
130              
131              
132             __PACKAGE__->belongs_to(
133             "organism",
134             "Bio::Chado::Schema::Result::Organism::Organism",
135             { organism_id => "organism_id" },
136             {
137             cascade_copy => 0,
138             cascade_delete => 0,
139             is_deferrable => 1,
140             on_delete => "CASCADE",
141             on_update => "CASCADE",
142             },
143             );
144              
145              
146             __PACKAGE__->belongs_to(
147             "genotype2",
148             "Bio::Chado::Schema::Result::Genetic::Genotype",
149             { genotype_id => "genotype2_id" },
150             {
151             cascade_copy => 0,
152             cascade_delete => 0,
153             is_deferrable => 1,
154             on_delete => "CASCADE",
155             on_update => "CASCADE",
156             },
157             );
158              
159              
160             __PACKAGE__->belongs_to(
161             "pub",
162             "Bio::Chado::Schema::Result::Pub::Pub",
163             { pub_id => "pub_id" },
164             {
165             cascade_copy => 0,
166             cascade_delete => 0,
167             is_deferrable => 1,
168             on_delete => "CASCADE",
169             on_update => "CASCADE",
170             },
171             );
172              
173              
174             __PACKAGE__->has_many(
175             "phenotype_comparison_cvterms",
176             "Bio::Chado::Schema::Result::Genetic::PhenotypeComparisonCvterm",
177             {
178             "foreign.phenotype_comparison_id" => "self.phenotype_comparison_id",
179             },
180             { cascade_copy => 0, cascade_delete => 0 },
181             );
182              
183              
184             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
185             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/p1WiPp48bCsAWZES7JzKg
186              
187              
188             # You can replace this text with custom content, and it will be preserved on regeneration
189             1;
190              
191             __END__