| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/HoldFillTarget.pm |
| Statements | Executed 16 statements in 446µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 42µs | 47µs | Class::C3::Componentised::BEGIN@1.1162 |
| 1 | 1 | 1 | 11µs | 25µs | Koha::Schema::Result::HoldFillTarget::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 21µs | Koha::Schema::Result::HoldFillTarget::BEGIN@14 |
| 1 | 1 | 1 | 100ns | 100ns | Koha::Schema::Result::HoldFillTarget::BEGIN@16 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 102µs | 2 | 52µs | # spent 47µs (42+5) within Class::C3::Componentised::BEGIN@1.1162 which was called:
# once (42µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 47µs making 1 call to Class::C3::Componentised::BEGIN@1.1162
# spent 5µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::HoldFillTarget; | ||||
| 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::HoldFillTarget | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 47µs | 2 | 38µs | # spent 25µs (11+14) within Koha::Schema::Result::HoldFillTarget::BEGIN@13 which was called:
# once (11µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 25µs making 1 call to Koha::Schema::Result::HoldFillTarget::BEGIN@13
# spent 14µs making 1 call to strict::import |
| 14 | 2 | 41µs | 2 | 32µs | # spent 21µs (10+11) within Koha::Schema::Result::HoldFillTarget::BEGIN@14 which was called:
# once (10µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 21µs making 1 call to Koha::Schema::Result::HoldFillTarget::BEGIN@14
# spent 11µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 158µs | 2 | 100ns | # spent 100ns within Koha::Schema::Result::HoldFillTarget::BEGIN@16 which was called:
# once (100ns+0s) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 100ns making 1 call to Koha::Schema::Result::HoldFillTarget::BEGIN@16
# spent 0s making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<hold_fill_targets> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 28µs | 1 | 362µs | __PACKAGE__->table("hold_fill_targets"); # spent 362µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 borrowernumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_foreign_key: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 biblionumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 itemnumber | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_foreign_key: 1 | ||||
| 42 | is_nullable: 0 | ||||
| 43 | |||||
| 44 | =head2 source_branchcode | ||||
| 45 | |||||
| 46 | data_type: 'varchar' | ||||
| 47 | is_foreign_key: 1 | ||||
| 48 | is_nullable: 1 | ||||
| 49 | size: 10 | ||||
| 50 | |||||
| 51 | =head2 item_level_request | ||||
| 52 | |||||
| 53 | data_type: 'tinyint' | ||||
| 54 | default_value: 0 | ||||
| 55 | is_nullable: 0 | ||||
| 56 | |||||
| 57 | =cut | ||||
| 58 | |||||
| 59 | 1 | 22µs | 1 | 1.25ms | __PACKAGE__->add_columns( # spent 1.25ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 60 | "borrowernumber", | ||||
| 61 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 62 | "biblionumber", | ||||
| 63 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 64 | "itemnumber", | ||||
| 65 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 66 | "source_branchcode", | ||||
| 67 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
| 68 | "item_level_request", | ||||
| 69 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
| 70 | ); | ||||
| 71 | |||||
| 72 | =head1 PRIMARY KEY | ||||
| 73 | |||||
| 74 | =over 4 | ||||
| 75 | |||||
| 76 | =item * L</itemnumber> | ||||
| 77 | |||||
| 78 | =back | ||||
| 79 | |||||
| 80 | =cut | ||||
| 81 | |||||
| 82 | 1 | 18µs | 1 | 81µs | __PACKAGE__->set_primary_key("itemnumber"); # spent 81µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 83 | |||||
| 84 | =head1 RELATIONS | ||||
| 85 | |||||
| 86 | =head2 biblionumber | ||||
| 87 | |||||
| 88 | Type: belongs_to | ||||
| 89 | |||||
| 90 | Related object: L<Koha::Schema::Result::Biblio> | ||||
| 91 | |||||
| 92 | =cut | ||||
| 93 | |||||
| 94 | 1 | 10µs | 1 | 383µs | __PACKAGE__->belongs_to( # spent 383µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 95 | "biblionumber", | ||||
| 96 | "Koha::Schema::Result::Biblio", | ||||
| 97 | { biblionumber => "biblionumber" }, | ||||
| 98 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 99 | ); | ||||
| 100 | |||||
| 101 | =head2 borrowernumber | ||||
| 102 | |||||
| 103 | Type: belongs_to | ||||
| 104 | |||||
| 105 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 106 | |||||
| 107 | =cut | ||||
| 108 | |||||
| 109 | 1 | 4µs | 1 | 199µs | __PACKAGE__->belongs_to( # spent 199µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 110 | "borrowernumber", | ||||
| 111 | "Koha::Schema::Result::Borrower", | ||||
| 112 | { borrowernumber => "borrowernumber" }, | ||||
| 113 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 114 | ); | ||||
| 115 | |||||
| 116 | =head2 itemnumber | ||||
| 117 | |||||
| 118 | Type: belongs_to | ||||
| 119 | |||||
| 120 | Related object: L<Koha::Schema::Result::Item> | ||||
| 121 | |||||
| 122 | =cut | ||||
| 123 | |||||
| 124 | 1 | 4µs | 1 | 209µs | __PACKAGE__->belongs_to( # spent 209µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 125 | "itemnumber", | ||||
| 126 | "Koha::Schema::Result::Item", | ||||
| 127 | { itemnumber => "itemnumber" }, | ||||
| 128 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 129 | ); | ||||
| 130 | |||||
| 131 | =head2 source_branchcode | ||||
| 132 | |||||
| 133 | Type: belongs_to | ||||
| 134 | |||||
| 135 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 136 | |||||
| 137 | =cut | ||||
| 138 | |||||
| 139 | 1 | 4µs | 1 | 569µs | __PACKAGE__->belongs_to( # spent 569µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 140 | "source_branchcode", | ||||
| 141 | "Koha::Schema::Result::Branch", | ||||
| 142 | { branchcode => "source_branchcode" }, | ||||
| 143 | { | ||||
| 144 | is_deferrable => 1, | ||||
| 145 | join_type => "LEFT", | ||||
| 146 | on_delete => "CASCADE", | ||||
| 147 | on_update => "CASCADE", | ||||
| 148 | }, | ||||
| 149 | ); | ||||
| 150 | |||||
| 151 | |||||
| 152 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 153 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uSU9PBMr4e6XKuDgBV583A | ||||
| 154 | |||||
| 155 | |||||
| 156 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 157 | 1 | 10µs | 1; |