| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Reserve.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 32µs | 36µs | Class::C3::Componentised::BEGIN@1.308 |
| 1 | 1 | 1 | 14µs | 22µs | Koha::Schema::Result::Reserve::BEGIN@14 |
| 1 | 1 | 1 | 12µs | 95µs | Koha::Schema::Result::Reserve::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 20µs | Koha::Schema::Result::Reserve::BEGIN@13 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 41µs | # spent 36µs (32+4) within Class::C3::Componentised::BEGIN@1.308 which was called:
# once (32µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 36µs making 1 call to Class::C3::Componentised::BEGIN@1.308
# spent 4µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::Reserve; | ||||
| 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::Reserve | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 31µs | # spent 20µs (9+11) within Koha::Schema::Result::Reserve::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::Reserve::BEGIN@13
# spent 11µs making 1 call to strict::import | ||
| 14 | 2 | 30µs | # spent 22µs (14+8) within Koha::Schema::Result::Reserve::BEGIN@14 which was called:
# once (14µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 22µs making 1 call to Koha::Schema::Result::Reserve::BEGIN@14
# spent 8µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 178µs | # spent 95µs (12+83) within Koha::Schema::Result::Reserve::BEGIN@16 which was called:
# once (12µs+83µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 95µs making 1 call to Koha::Schema::Result::Reserve::BEGIN@16
# spent 83µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<reserves> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 339µs | __PACKAGE__->table("reserves"); # spent 339µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 reserve_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 borrowernumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | default_value: 0 | ||||
| 36 | is_foreign_key: 1 | ||||
| 37 | is_nullable: 0 | ||||
| 38 | |||||
| 39 | =head2 reservedate | ||||
| 40 | |||||
| 41 | data_type: 'date' | ||||
| 42 | datetime_undef_if_invalid: 1 | ||||
| 43 | is_nullable: 1 | ||||
| 44 | |||||
| 45 | =head2 biblionumber | ||||
| 46 | |||||
| 47 | data_type: 'integer' | ||||
| 48 | default_value: 0 | ||||
| 49 | is_foreign_key: 1 | ||||
| 50 | is_nullable: 0 | ||||
| 51 | |||||
| 52 | =head2 branchcode | ||||
| 53 | |||||
| 54 | data_type: 'varchar' | ||||
| 55 | is_foreign_key: 1 | ||||
| 56 | is_nullable: 1 | ||||
| 57 | size: 10 | ||||
| 58 | |||||
| 59 | =head2 notificationdate | ||||
| 60 | |||||
| 61 | data_type: 'date' | ||||
| 62 | datetime_undef_if_invalid: 1 | ||||
| 63 | is_nullable: 1 | ||||
| 64 | |||||
| 65 | =head2 reminderdate | ||||
| 66 | |||||
| 67 | data_type: 'date' | ||||
| 68 | datetime_undef_if_invalid: 1 | ||||
| 69 | is_nullable: 1 | ||||
| 70 | |||||
| 71 | =head2 cancellationdate | ||||
| 72 | |||||
| 73 | data_type: 'date' | ||||
| 74 | datetime_undef_if_invalid: 1 | ||||
| 75 | is_nullable: 1 | ||||
| 76 | |||||
| 77 | =head2 reservenotes | ||||
| 78 | |||||
| 79 | data_type: 'mediumtext' | ||||
| 80 | is_nullable: 1 | ||||
| 81 | |||||
| 82 | =head2 priority | ||||
| 83 | |||||
| 84 | data_type: 'smallint' | ||||
| 85 | is_nullable: 1 | ||||
| 86 | |||||
| 87 | =head2 found | ||||
| 88 | |||||
| 89 | data_type: 'varchar' | ||||
| 90 | is_nullable: 1 | ||||
| 91 | size: 1 | ||||
| 92 | |||||
| 93 | =head2 timestamp | ||||
| 94 | |||||
| 95 | data_type: 'timestamp' | ||||
| 96 | datetime_undef_if_invalid: 1 | ||||
| 97 | default_value: current_timestamp | ||||
| 98 | is_nullable: 0 | ||||
| 99 | |||||
| 100 | =head2 itemnumber | ||||
| 101 | |||||
| 102 | data_type: 'integer' | ||||
| 103 | is_foreign_key: 1 | ||||
| 104 | is_nullable: 1 | ||||
| 105 | |||||
| 106 | =head2 waitingdate | ||||
| 107 | |||||
| 108 | data_type: 'date' | ||||
| 109 | datetime_undef_if_invalid: 1 | ||||
| 110 | is_nullable: 1 | ||||
| 111 | |||||
| 112 | =head2 expirationdate | ||||
| 113 | |||||
| 114 | data_type: 'date' | ||||
| 115 | datetime_undef_if_invalid: 1 | ||||
| 116 | is_nullable: 1 | ||||
| 117 | |||||
| 118 | =head2 lowestPriority | ||||
| 119 | |||||
| 120 | accessor: 'lowest_priority' | ||||
| 121 | data_type: 'tinyint' | ||||
| 122 | is_nullable: 0 | ||||
| 123 | |||||
| 124 | =head2 suspend | ||||
| 125 | |||||
| 126 | data_type: 'tinyint' | ||||
| 127 | default_value: 0 | ||||
| 128 | is_nullable: 0 | ||||
| 129 | |||||
| 130 | =head2 suspend_until | ||||
| 131 | |||||
| 132 | data_type: 'datetime' | ||||
| 133 | datetime_undef_if_invalid: 1 | ||||
| 134 | is_nullable: 1 | ||||
| 135 | |||||
| 136 | =cut | ||||
| 137 | |||||
| 138 | 1 | 6.21ms | __PACKAGE__->add_columns( # spent 6.21ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 139 | "reserve_id", | ||||
| 140 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 141 | "borrowernumber", | ||||
| 142 | { | ||||
| 143 | data_type => "integer", | ||||
| 144 | default_value => 0, | ||||
| 145 | is_foreign_key => 1, | ||||
| 146 | is_nullable => 0, | ||||
| 147 | }, | ||||
| 148 | "reservedate", | ||||
| 149 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 150 | "biblionumber", | ||||
| 151 | { | ||||
| 152 | data_type => "integer", | ||||
| 153 | default_value => 0, | ||||
| 154 | is_foreign_key => 1, | ||||
| 155 | is_nullable => 0, | ||||
| 156 | }, | ||||
| 157 | "branchcode", | ||||
| 158 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
| 159 | "notificationdate", | ||||
| 160 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 161 | "reminderdate", | ||||
| 162 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 163 | "cancellationdate", | ||||
| 164 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 165 | "reservenotes", | ||||
| 166 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 167 | "priority", | ||||
| 168 | { data_type => "smallint", is_nullable => 1 }, | ||||
| 169 | "found", | ||||
| 170 | { data_type => "varchar", is_nullable => 1, size => 1 }, | ||||
| 171 | "timestamp", | ||||
| 172 | { | ||||
| 173 | data_type => "timestamp", | ||||
| 174 | datetime_undef_if_invalid => 1, | ||||
| 175 | default_value => \"current_timestamp", | ||||
| 176 | is_nullable => 0, | ||||
| 177 | }, | ||||
| 178 | "itemnumber", | ||||
| 179 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 180 | "waitingdate", | ||||
| 181 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 182 | "expirationdate", | ||||
| 183 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 184 | "lowestPriority", | ||||
| 185 | { accessor => "lowest_priority", data_type => "tinyint", is_nullable => 0 }, | ||||
| 186 | "suspend", | ||||
| 187 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
| 188 | "suspend_until", | ||||
| 189 | { | ||||
| 190 | data_type => "datetime", | ||||
| 191 | datetime_undef_if_invalid => 1, | ||||
| 192 | is_nullable => 1, | ||||
| 193 | }, | ||||
| 194 | ); | ||||
| 195 | |||||
| 196 | =head1 PRIMARY KEY | ||||
| 197 | |||||
| 198 | =over 4 | ||||
| 199 | |||||
| 200 | =item * L</reserve_id> | ||||
| 201 | |||||
| 202 | =back | ||||
| 203 | |||||
| 204 | =cut | ||||
| 205 | |||||
| 206 | 1 | 87µs | __PACKAGE__->set_primary_key("reserve_id"); # spent 87µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 207 | |||||
| 208 | =head1 RELATIONS | ||||
| 209 | |||||
| 210 | =head2 biblionumber | ||||
| 211 | |||||
| 212 | Type: belongs_to | ||||
| 213 | |||||
| 214 | Related object: L<Koha::Schema::Result::Biblio> | ||||
| 215 | |||||
| 216 | =cut | ||||
| 217 | |||||
| 218 | 1 | 380µs | __PACKAGE__->belongs_to( # spent 380µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 219 | "biblionumber", | ||||
| 220 | "Koha::Schema::Result::Biblio", | ||||
| 221 | { biblionumber => "biblionumber" }, | ||||
| 222 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 223 | ); | ||||
| 224 | |||||
| 225 | =head2 borrowernumber | ||||
| 226 | |||||
| 227 | Type: belongs_to | ||||
| 228 | |||||
| 229 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 230 | |||||
| 231 | =cut | ||||
| 232 | |||||
| 233 | 1 | 194µs | __PACKAGE__->belongs_to( # spent 194µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 234 | "borrowernumber", | ||||
| 235 | "Koha::Schema::Result::Borrower", | ||||
| 236 | { borrowernumber => "borrowernumber" }, | ||||
| 237 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 238 | ); | ||||
| 239 | |||||
| 240 | =head2 branchcode | ||||
| 241 | |||||
| 242 | Type: belongs_to | ||||
| 243 | |||||
| 244 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 245 | |||||
| 246 | =cut | ||||
| 247 | |||||
| 248 | 1 | 474µs | __PACKAGE__->belongs_to( # spent 474µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 249 | "branchcode", | ||||
| 250 | "Koha::Schema::Result::Branch", | ||||
| 251 | { branchcode => "branchcode" }, | ||||
| 252 | { | ||||
| 253 | is_deferrable => 1, | ||||
| 254 | join_type => "LEFT", | ||||
| 255 | on_delete => "CASCADE", | ||||
| 256 | on_update => "CASCADE", | ||||
| 257 | }, | ||||
| 258 | ); | ||||
| 259 | |||||
| 260 | =head2 itemnumber | ||||
| 261 | |||||
| 262 | Type: belongs_to | ||||
| 263 | |||||
| 264 | Related object: L<Koha::Schema::Result::Item> | ||||
| 265 | |||||
| 266 | =cut | ||||
| 267 | |||||
| 268 | 1 | 567µs | __PACKAGE__->belongs_to( # spent 567µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 269 | "itemnumber", | ||||
| 270 | "Koha::Schema::Result::Item", | ||||
| 271 | { itemnumber => "itemnumber" }, | ||||
| 272 | { | ||||
| 273 | is_deferrable => 1, | ||||
| 274 | join_type => "LEFT", | ||||
| 275 | on_delete => "CASCADE", | ||||
| 276 | on_update => "CASCADE", | ||||
| 277 | }, | ||||
| 278 | ); | ||||
| 279 | |||||
| 280 | |||||
| 281 | # Created by DBIx::Class::Schema::Loader v0.07040 @ 2015-06-30 08:51:40 | ||||
| 282 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uHHqseJ56g3nDyKnNncyUA | ||||
| 283 | |||||
| 284 | 1 | 259µs | __PACKAGE__->belongs_to( # spent 259µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 285 | "item", | ||||
| 286 | "Koha::Schema::Result::Item", | ||||
| 287 | { itemnumber => "itemnumber" }, | ||||
| 288 | { | ||||
| 289 | is_deferrable => 1, | ||||
| 290 | join_type => "LEFT", | ||||
| 291 | on_delete => "CASCADE", | ||||
| 292 | on_update => "CASCADE", | ||||
| 293 | }, | ||||
| 294 | ); | ||||
| 295 | |||||
| 296 | 1 | 171µs | __PACKAGE__->belongs_to( # spent 171µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 297 | "biblio", | ||||
| 298 | "Koha::Schema::Result::Biblio", | ||||
| 299 | { biblionumber => "biblionumber" }, | ||||
| 300 | { | ||||
| 301 | is_deferrable => 1, | ||||
| 302 | join_type => "LEFT", | ||||
| 303 | on_delete => "CASCADE", | ||||
| 304 | on_update => "CASCADE", | ||||
| 305 | }, | ||||
| 306 | ); | ||||
| 307 | |||||
| 308 | 1; |