File Coverage

blib/lib/Bio/Chado/Schema/Result/Phenotype/Phenotype.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::Phenotype::Phenotype;
2             BEGIN {
3 6     6   2860 $Bio::Chado::Schema::Result::Phenotype::Phenotype::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   96 $Bio::Chado::Schema::Result::Phenotype::Phenotype::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   35 use strict;
  6         13  
  6         97  
13 6     6   25 use warnings;
  6         12  
  6         134  
14              
15 6     6   29 use base 'DBIx::Class::Core';
  6         13  
  6         1601  
16              
17              
18              
19             __PACKAGE__->table("phenotype");
20              
21              
22             __PACKAGE__->add_columns(
23             "phenotype_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "phenotype_phenotype_id_seq",
29             },
30             "uniquename",
31             { data_type => "text", is_nullable => 0 },
32             "observable_id",
33             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
34             "attr_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "value",
37             { data_type => "text", is_nullable => 1 },
38             "cvalue_id",
39             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
40             "assay_id",
41             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
42             );
43             __PACKAGE__->set_primary_key("phenotype_id");
44             __PACKAGE__->add_unique_constraint("phenotype_c1", ["uniquename"]);
45              
46              
47             __PACKAGE__->has_many(
48             "feature_phenotypes",
49             "Bio::Chado::Schema::Result::Phenotype::FeaturePhenotype",
50             { "foreign.phenotype_id" => "self.phenotype_id" },
51             { cascade_copy => 0, cascade_delete => 0 },
52             );
53              
54              
55             __PACKAGE__->has_many(
56             "nd_experiment_phenotypes",
57             "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPhenotype",
58             { "foreign.phenotype_id" => "self.phenotype_id" },
59             { cascade_copy => 0, cascade_delete => 0 },
60             );
61              
62              
63             __PACKAGE__->belongs_to(
64             "assay",
65             "Bio::Chado::Schema::Result::Cv::Cvterm",
66             { cvterm_id => "assay_id" },
67             {
68             cascade_copy => 0,
69             cascade_delete => 0,
70             is_deferrable => 1,
71             join_type => "LEFT",
72             on_delete => "CASCADE",
73             on_update => "CASCADE",
74             },
75             );
76              
77              
78             __PACKAGE__->belongs_to(
79             "attr",
80             "Bio::Chado::Schema::Result::Cv::Cvterm",
81             { cvterm_id => "attr_id" },
82             {
83             cascade_copy => 0,
84             cascade_delete => 0,
85             is_deferrable => 1,
86             join_type => "LEFT",
87             on_delete => "CASCADE",
88             on_update => "CASCADE",
89             },
90             );
91              
92              
93             __PACKAGE__->belongs_to(
94             "observable",
95             "Bio::Chado::Schema::Result::Cv::Cvterm",
96             { cvterm_id => "observable_id" },
97             {
98             cascade_copy => 0,
99             cascade_delete => 0,
100             is_deferrable => 1,
101             join_type => "LEFT",
102             on_delete => "CASCADE",
103             on_update => "CASCADE",
104             },
105             );
106              
107              
108             __PACKAGE__->belongs_to(
109             "cvalue",
110             "Bio::Chado::Schema::Result::Cv::Cvterm",
111             { cvterm_id => "cvalue_id" },
112             {
113             cascade_copy => 0,
114             cascade_delete => 0,
115             is_deferrable => 1,
116             join_type => "LEFT",
117             on_delete => "CASCADE",
118             on_update => "CASCADE",
119             },
120             );
121              
122              
123             __PACKAGE__->has_many(
124             "phenotype_comparison_phenotype1s",
125             "Bio::Chado::Schema::Result::Genetic::PhenotypeComparison",
126             { "foreign.phenotype1_id" => "self.phenotype_id" },
127             { cascade_copy => 0, cascade_delete => 0 },
128             );
129              
130              
131             __PACKAGE__->has_many(
132             "phenotype_comparison_phenotype2s",
133             "Bio::Chado::Schema::Result::Genetic::PhenotypeComparison",
134             { "foreign.phenotype2_id" => "self.phenotype_id" },
135             { cascade_copy => 0, cascade_delete => 0 },
136             );
137              
138              
139             __PACKAGE__->has_many(
140             "phenotype_cvterms",
141             "Bio::Chado::Schema::Result::Phenotype::PhenotypeCvterm",
142             { "foreign.phenotype_id" => "self.phenotype_id" },
143             { cascade_copy => 0, cascade_delete => 0 },
144             );
145              
146              
147             __PACKAGE__->has_many(
148             "phenstatements",
149             "Bio::Chado::Schema::Result::Genetic::Phenstatement",
150             { "foreign.phenotype_id" => "self.phenotype_id" },
151             { cascade_copy => 0, cascade_delete => 0 },
152             );
153              
154              
155             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
156             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zxmEvQ27T0zCIZ3ioPlTgw
157              
158              
159             # You can replace this text with custom content, and it will be preserved on regeneration
160             1;
161              
162             __END__