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