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