Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Aqbudget.pm |
Statements | Executed 18 statements in 708µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 25µs | 29µs | BEGIN@1.788 | Class::C3::Componentised::
1 | 1 | 1 | 17µs | 90µs | BEGIN@16 | Koha::Schema::Result::Aqbudget::
1 | 1 | 1 | 9µs | 20µs | BEGIN@13 | Koha::Schema::Result::Aqbudget::
1 | 1 | 1 | 8µs | 17µs | BEGIN@14 | Koha::Schema::Result::Aqbudget::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 67µs | 2 | 33µs | # spent 29µs (25+4) within Class::C3::Componentised::BEGIN@1.788 which was called:
# once (25µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 29µs making 1 call to Class::C3::Componentised::BEGIN@1.788
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::Aqbudget; | ||||
3 | |||||
4 | # Created by DBIx::Class::Schema::Loader | ||||
5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||||
6 | |||||
7 | =head1 NAME | ||||
8 | |||||
9 | Koha::Schema::Result::Aqbudget | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 40µs | 2 | 30µs | # spent 20µs (9+11) within Koha::Schema::Result::Aqbudget::BEGIN@13 which was called:
# once (9µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 20µs making 1 call to Koha::Schema::Result::Aqbudget::BEGIN@13
# spent 11µs making 1 call to strict::import |
14 | 2 | 39µs | 2 | 26µs | # spent 17µs (8+9) within Koha::Schema::Result::Aqbudget::BEGIN@14 which was called:
# once (8µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 17µs making 1 call to Koha::Schema::Result::Aqbudget::BEGIN@14
# spent 9µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 424µs | 2 | 162µs | # spent 90µs (17+73) within Koha::Schema::Result::Aqbudget::BEGIN@16 which was called:
# once (17µs+73µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 90µs making 1 call to Koha::Schema::Result::Aqbudget::BEGIN@16
# spent 73µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<aqbudgets> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 21µs | 1 | 333µs | __PACKAGE__->table("aqbudgets"); # spent 333µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 budget_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_auto_increment: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 budget_parent_id | ||||
33 | |||||
34 | data_type: 'integer' | ||||
35 | is_nullable: 1 | ||||
36 | |||||
37 | =head2 budget_code | ||||
38 | |||||
39 | data_type: 'varchar' | ||||
40 | is_nullable: 1 | ||||
41 | size: 30 | ||||
42 | |||||
43 | =head2 budget_name | ||||
44 | |||||
45 | data_type: 'varchar' | ||||
46 | is_nullable: 1 | ||||
47 | size: 80 | ||||
48 | |||||
49 | =head2 budget_branchcode | ||||
50 | |||||
51 | data_type: 'varchar' | ||||
52 | is_nullable: 1 | ||||
53 | size: 10 | ||||
54 | |||||
55 | =head2 budget_amount | ||||
56 | |||||
57 | data_type: 'decimal' | ||||
58 | default_value: 0.000000 | ||||
59 | is_nullable: 1 | ||||
60 | size: [28,6] | ||||
61 | |||||
62 | =head2 budget_encumb | ||||
63 | |||||
64 | data_type: 'decimal' | ||||
65 | default_value: 0.000000 | ||||
66 | is_nullable: 1 | ||||
67 | size: [28,6] | ||||
68 | |||||
69 | =head2 budget_expend | ||||
70 | |||||
71 | data_type: 'decimal' | ||||
72 | default_value: 0.000000 | ||||
73 | is_nullable: 1 | ||||
74 | size: [28,6] | ||||
75 | |||||
76 | =head2 budget_notes | ||||
77 | |||||
78 | data_type: 'mediumtext' | ||||
79 | is_nullable: 1 | ||||
80 | |||||
81 | =head2 timestamp | ||||
82 | |||||
83 | data_type: 'timestamp' | ||||
84 | datetime_undef_if_invalid: 1 | ||||
85 | default_value: current_timestamp | ||||
86 | is_nullable: 0 | ||||
87 | |||||
88 | =head2 budget_period_id | ||||
89 | |||||
90 | data_type: 'integer' | ||||
91 | is_nullable: 1 | ||||
92 | |||||
93 | =head2 sort1_authcat | ||||
94 | |||||
95 | data_type: 'varchar' | ||||
96 | is_nullable: 1 | ||||
97 | size: 80 | ||||
98 | |||||
99 | =head2 sort2_authcat | ||||
100 | |||||
101 | data_type: 'varchar' | ||||
102 | is_nullable: 1 | ||||
103 | size: 80 | ||||
104 | |||||
105 | =head2 budget_owner_id | ||||
106 | |||||
107 | data_type: 'integer' | ||||
108 | is_nullable: 1 | ||||
109 | |||||
110 | =head2 budget_permission | ||||
111 | |||||
112 | data_type: 'integer' | ||||
113 | default_value: 0 | ||||
114 | is_nullable: 1 | ||||
115 | |||||
116 | =cut | ||||
117 | |||||
118 | 1 | 37µs | 1 | 10.8ms | __PACKAGE__->add_columns( # spent 10.8ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
119 | "budget_id", | ||||
120 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
121 | "budget_parent_id", | ||||
122 | { data_type => "integer", is_nullable => 1 }, | ||||
123 | "budget_code", | ||||
124 | { data_type => "varchar", is_nullable => 1, size => 30 }, | ||||
125 | "budget_name", | ||||
126 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
127 | "budget_branchcode", | ||||
128 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
129 | "budget_amount", | ||||
130 | { | ||||
131 | data_type => "decimal", | ||||
132 | default_value => "0.000000", | ||||
133 | is_nullable => 1, | ||||
134 | size => [28, 6], | ||||
135 | }, | ||||
136 | "budget_encumb", | ||||
137 | { | ||||
138 | data_type => "decimal", | ||||
139 | default_value => "0.000000", | ||||
140 | is_nullable => 1, | ||||
141 | size => [28, 6], | ||||
142 | }, | ||||
143 | "budget_expend", | ||||
144 | { | ||||
145 | data_type => "decimal", | ||||
146 | default_value => "0.000000", | ||||
147 | is_nullable => 1, | ||||
148 | size => [28, 6], | ||||
149 | }, | ||||
150 | "budget_notes", | ||||
151 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
152 | "timestamp", | ||||
153 | { | ||||
154 | data_type => "timestamp", | ||||
155 | datetime_undef_if_invalid => 1, | ||||
156 | default_value => \"current_timestamp", | ||||
157 | is_nullable => 0, | ||||
158 | }, | ||||
159 | "budget_period_id", | ||||
160 | { data_type => "integer", is_nullable => 1 }, | ||||
161 | "sort1_authcat", | ||||
162 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
163 | "sort2_authcat", | ||||
164 | { data_type => "varchar", is_nullable => 1, size => 80 }, | ||||
165 | "budget_owner_id", | ||||
166 | { data_type => "integer", is_nullable => 1 }, | ||||
167 | "budget_permission", | ||||
168 | { data_type => "integer", default_value => 0, is_nullable => 1 }, | ||||
169 | ); | ||||
170 | |||||
171 | =head1 PRIMARY KEY | ||||
172 | |||||
173 | =over 4 | ||||
174 | |||||
175 | =item * L</budget_id> | ||||
176 | |||||
177 | =back | ||||
178 | |||||
179 | =cut | ||||
180 | |||||
181 | 1 | 18µs | 1 | 93µs | __PACKAGE__->set_primary_key("budget_id"); # spent 93µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
182 | |||||
183 | =head1 RELATIONS | ||||
184 | |||||
185 | =head2 aqbudgetborrowers | ||||
186 | |||||
187 | Type: has_many | ||||
188 | |||||
189 | Related object: L<Koha::Schema::Result::Aqbudgetborrower> | ||||
190 | |||||
191 | =cut | ||||
192 | |||||
193 | 1 | 10µs | 1 | 341µs | __PACKAGE__->has_many( # spent 341µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
194 | "aqbudgetborrowers", | ||||
195 | "Koha::Schema::Result::Aqbudgetborrower", | ||||
196 | { "foreign.budget_id" => "self.budget_id" }, | ||||
197 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
198 | ); | ||||
199 | |||||
200 | =head2 aqbudgets_plannings | ||||
201 | |||||
202 | Type: has_many | ||||
203 | |||||
204 | Related object: L<Koha::Schema::Result::AqbudgetsPlanning> | ||||
205 | |||||
206 | =cut | ||||
207 | |||||
208 | 1 | 4µs | 1 | 225µs | __PACKAGE__->has_many( # spent 225µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
209 | "aqbudgets_plannings", | ||||
210 | "Koha::Schema::Result::AqbudgetsPlanning", | ||||
211 | { "foreign.budget_id" => "self.budget_id" }, | ||||
212 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
213 | ); | ||||
214 | |||||
215 | =head2 aqinvoices | ||||
216 | |||||
217 | Type: has_many | ||||
218 | |||||
219 | Related object: L<Koha::Schema::Result::Aqinvoice> | ||||
220 | |||||
221 | =cut | ||||
222 | |||||
223 | 1 | 5µs | 1 | 690µs | __PACKAGE__->has_many( # spent 690µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
224 | "aqinvoices", | ||||
225 | "Koha::Schema::Result::Aqinvoice", | ||||
226 | { "foreign.shipmentcost_budgetid" => "self.budget_id" }, | ||||
227 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
228 | ); | ||||
229 | |||||
230 | =head2 aqorders | ||||
231 | |||||
232 | Type: has_many | ||||
233 | |||||
234 | Related object: L<Koha::Schema::Result::Aqorder> | ||||
235 | |||||
236 | =cut | ||||
237 | |||||
238 | 1 | 5µs | 1 | 240µs | __PACKAGE__->has_many( # spent 240µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
239 | "aqorders", | ||||
240 | "Koha::Schema::Result::Aqorder", | ||||
241 | { "foreign.budget_id" => "self.budget_id" }, | ||||
242 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
243 | ); | ||||
244 | |||||
245 | =head2 suggestions | ||||
246 | |||||
247 | Type: has_many | ||||
248 | |||||
249 | Related object: L<Koha::Schema::Result::Suggestion> | ||||
250 | |||||
251 | =cut | ||||
252 | |||||
253 | 1 | 5µs | 1 | 216µs | __PACKAGE__->has_many( # spent 216µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
254 | "suggestions", | ||||
255 | "Koha::Schema::Result::Suggestion", | ||||
256 | { "foreign.budgetid" => "self.budget_id" }, | ||||
257 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
258 | ); | ||||
259 | |||||
260 | =head2 borrowernumbers | ||||
261 | |||||
262 | Type: many_to_many | ||||
263 | |||||
264 | Composing rels: L</aqbudgetborrowers> -> borrowernumber | ||||
265 | |||||
266 | =cut | ||||
267 | |||||
268 | 1 | 9µs | 1 | 175µs | __PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber"); # spent 175µs making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many |
269 | |||||
270 | |||||
271 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-09 15:51:54 | ||||
272 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZKnWPCMNFUm/TzeBxeDZA | ||||
273 | |||||
274 | |||||
275 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
276 | 1 | 23µs | 1; |