RackTables/0_20_8/Result/PatchCableConnectorCompat.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 26 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 Schema::RackTables::0_20_8::Result::PatchCableConnectorCompat;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Schema::RackTables::0_20_8::Result::PatchCableConnectorCompat
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<PatchCableConnectorCompat>
31  
32 =cut
33  
34 __PACKAGE__->table("PatchCableConnectorCompat");
35  
36 =head1 ACCESSORS
37  
38 =head2 pctype_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 connector_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =cut
53  
54 __PACKAGE__->add_columns(
55 "pctype_id",
56 {
57 data_type => "integer",
58 extra => { unsigned => 1 },
59 is_foreign_key => 1,
60 is_nullable => 0,
61 },
62 "connector_id",
63 {
64 data_type => "integer",
65 extra => { unsigned => 1 },
66 is_foreign_key => 1,
67 is_nullable => 0,
68 },
69 );
70  
71 =head1 PRIMARY KEY
72  
73 =over 4
74  
75 =item * L</pctype_id>
76  
77 =item * L</connector_id>
78  
79 =back
80  
81 =cut
82  
83 __PACKAGE__->set_primary_key("pctype_id", "connector_id");
84  
85 =head1 RELATIONS
86  
87 =head2 connector
88  
89 Type: belongs_to
90  
91 Related object: L<Schema::RackTables::0_20_8::Result::PatchCableConnector>
92  
93 =cut
94  
95 __PACKAGE__->belongs_to(
96 "connector",
97 "Schema::RackTables::0_20_8::Result::PatchCableConnector",
98 { id => "connector_id" },
99 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
100 );
101  
102 =head2 patch_cable_heap_pctype_id_end1_conns
103  
104 Type: has_many
105  
106 Related object: L<Schema::RackTables::0_20_8::Result::PatchCableHeap>
107  
108 =cut
109  
110 __PACKAGE__->has_many(
111 "patch_cable_heap_pctype_id_end1_conns",
112 "Schema::RackTables::0_20_8::Result::PatchCableHeap",
113 {
114 "foreign.end1_conn_id" => "self.connector_id",
115 "foreign.pctype_id" => "self.pctype_id",
116 },
117 { cascade_copy => 0, cascade_delete => 0 },
118 );
119  
120 =head2 patch_cable_heap_pctype_id_end2_conns
121  
122 Type: has_many
123  
124 Related object: L<Schema::RackTables::0_20_8::Result::PatchCableHeap>
125  
126 =cut
127  
128 __PACKAGE__->has_many(
129 "patch_cable_heap_pctype_id_end2_conns",
130 "Schema::RackTables::0_20_8::Result::PatchCableHeap",
131 {
132 "foreign.end2_conn_id" => "self.connector_id",
133 "foreign.pctype_id" => "self.pctype_id",
134 },
135 { cascade_copy => 0, cascade_delete => 0 },
136 );
137  
138 =head2 pctype
139  
140 Type: belongs_to
141  
142 Related object: L<Schema::RackTables::0_20_8::Result::PatchCableType>
143  
144 =cut
145  
146 __PACKAGE__->belongs_to(
147 "pctype",
148 "Schema::RackTables::0_20_8::Result::PatchCableType",
149 { id => "pctype_id" },
150 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
151 );
152  
153  
154 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08
155 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bGWx6H/t4xs26U6g0VGh7Q
156  
157  
158 # You can replace this text with custom code or comments, and it will be preserved on regeneration
159 1;