File Coverage

blib/lib/Bio/Chado/Schema/Result/Phylogeny/Phylotree.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::Phylogeny::Phylotree;
2             BEGIN {
3 6     6   2623 $Bio::Chado::Schema::Result::Phylogeny::Phylotree::AUTHORITY = 'cpan:RBUELS';
4             }
5             BEGIN {
6 6     6   100 $Bio::Chado::Schema::Result::Phylogeny::Phylotree::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         14  
  6         113  
13 6     6   31 use warnings;
  6         14  
  6         151  
14              
15 6     6   31 use base 'DBIx::Class::Core';
  6         12  
  6         1201  
16              
17              
18              
19             __PACKAGE__->table("phylotree");
20              
21              
22             __PACKAGE__->add_columns(
23             "phylotree_id",
24             {
25             data_type => "integer",
26             is_auto_increment => 1,
27             is_nullable => 0,
28             sequence => "phylotree_phylotree_id_seq",
29             },
30             "dbxref_id",
31             { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
32             "name",
33             { data_type => "varchar", is_nullable => 1, size => 255 },
34             "type_id",
35             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
36             "analysis_id",
37             { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
38             "comment",
39             { data_type => "text", is_nullable => 1 },
40             );
41             __PACKAGE__->set_primary_key("phylotree_id");
42              
43              
44             __PACKAGE__->has_many(
45             "phylonodes",
46             "Bio::Chado::Schema::Result::Phylogeny::Phylonode",
47             { "foreign.phylotree_id" => "self.phylotree_id" },
48             { cascade_copy => 0, cascade_delete => 0 },
49             );
50              
51              
52             __PACKAGE__->has_many(
53             "phylonode_relationships",
54             "Bio::Chado::Schema::Result::Phylogeny::PhylonodeRelationship",
55             { "foreign.phylotree_id" => "self.phylotree_id" },
56             { cascade_copy => 0, cascade_delete => 0 },
57             );
58              
59              
60             __PACKAGE__->belongs_to(
61             "type",
62             "Bio::Chado::Schema::Result::Cv::Cvterm",
63             { cvterm_id => "type_id" },
64             {
65             cascade_copy => 0,
66             cascade_delete => 0,
67             is_deferrable => 1,
68             join_type => "LEFT",
69             on_delete => "CASCADE",
70             on_update => "CASCADE",
71             },
72             );
73              
74              
75             __PACKAGE__->belongs_to(
76             "analysis",
77             "Bio::Chado::Schema::Result::Companalysis::Analysis",
78             { analysis_id => "analysis_id" },
79             {
80             cascade_copy => 0,
81             cascade_delete => 0,
82             is_deferrable => 1,
83             join_type => "LEFT",
84             on_delete => "CASCADE",
85             on_update => "CASCADE",
86             },
87             );
88              
89              
90             __PACKAGE__->belongs_to(
91             "dbxref",
92             "Bio::Chado::Schema::Result::General::Dbxref",
93             { dbxref_id => "dbxref_id" },
94             {
95             cascade_copy => 0,
96             cascade_delete => 0,
97             is_deferrable => 1,
98             on_delete => "CASCADE",
99             on_update => "CASCADE",
100             },
101             );
102              
103              
104             __PACKAGE__->has_many(
105             "phylotree_pubs",
106             "Bio::Chado::Schema::Result::Phylogeny::PhylotreePub",
107             { "foreign.phylotree_id" => "self.phylotree_id" },
108             { cascade_copy => 0, cascade_delete => 0 },
109             );
110              
111              
112             # Created by DBIx::Class::Schema::Loader v0.07001 @ 2010-08-16 23:01:56
113             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K4VIwBdNVGkfj3vA72dz+Q
114              
115              
116             # You can replace this text with custom content, and it will be preserved on regeneration
117             1;
118              
119             __END__