File Coverage

blib/lib/Bio/Chado/Schema/Result/Genetic/Phenstatement.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::Phenstatement;
2             BEGIN {
3 6     6   2580 $Bio::Chado::Schema::Result::Genetic::Phenstatement::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   113 $Bio::Chado::Schema::Result::Genetic::Phenstatement::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   36 use strict;
  6         15  
  6         102  
13 6     6   26 use warnings;
  6         14  
  6         129  
14              
15 6     6   28 use base 'DBIx::Class::Core';
  6         14  
  6         1220  
16              
17              
18              
19             __PACKAGE__->table("phenstatement");
20              
21              
22             __PACKAGE__->add_columns(
23             "phenstatement_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "phenstatement_phenstatement_id_seq",
29             },
30             "genotype_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "environment_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
34             "phenotype_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
36             "type_id",
37             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
38             "pub_id",
39             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
40             );
41             __PACKAGE__->set_primary_key("phenstatement_id");
42             __PACKAGE__->add_unique_constraint(
43             "phenstatement_c1",
44             [
45             "genotype_id",
46             "phenotype_id",
47             "environment_id",
48             "type_id",
49             "pub_id",
50             ],
51             );
52              
53              
54             __PACKAGE__->belongs_to(
55             "phenotype",
56             "Bio::Chado::Schema::Result::Phenotype::Phenotype",
57             { phenotype_id => "phenotype_id" },
58             {
59             cascade_copy => 0,
60             cascade_delete => 0,
61             is_deferrable => 1,
62             on_delete => "CASCADE",
63             on_update => "CASCADE",
64             },
65             );
66              
67              
68             __PACKAGE__->belongs_to(
69             "environment",
70             "Bio::Chado::Schema::Result::Genetic::Environment",
71             { environment_id => "environment_id" },
72             {
73             cascade_copy => 0,
74             cascade_delete => 0,
75             is_deferrable => 1,
76             on_delete => "CASCADE",
77             on_update => "CASCADE",
78             },
79             );
80              
81              
82             __PACKAGE__->belongs_to(
83             "type",
84             "Bio::Chado::Schema::Result::Cv::Cvterm",
85             { cvterm_id => "type_id" },
86             {
87             cascade_copy => 0,
88             cascade_delete => 0,
89             is_deferrable => 1,
90             on_delete => "CASCADE",
91             on_update => "CASCADE",
92             },
93             );
94              
95              
96             __PACKAGE__->belongs_to(
97             "pub",
98             "Bio::Chado::Schema::Result::Pub::Pub",
99             { pub_id => "pub_id" },
100             {
101             cascade_copy => 0,
102             cascade_delete => 0,
103             is_deferrable => 1,
104             on_delete => "CASCADE",
105             on_update => "CASCADE",
106             },
107             );
108              
109              
110             __PACKAGE__->belongs_to(
111             "genotype",
112             "Bio::Chado::Schema::Result::Genetic::Genotype",
113             { genotype_id => "genotype_id" },
114             {
115             cascade_copy => 0,
116             cascade_delete => 0,
117             is_deferrable => 1,
118             on_delete => "CASCADE",
119             on_update => "CASCADE",
120             },
121             );
122              
123              
124             # Created by DBIx::Class::Schema::Loader v0.06001 @ 2010-04-16 14:33:36
125             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:odrJ1/G54YG3N5nOhq2lIA
126              
127              
128             # You can replace this text with custom content, and it will be preserved on regeneration
129             1;
130              
131             __END__