| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Virtualshelfcontent.pm |
| Statements | Executed 15 statements in 560µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 37µs | 43µs | Class::C3::Componentised::BEGIN@1.1619 |
| 1 | 1 | 1 | 15µs | 90µs | Koha::Schema::Result::Virtualshelfcontent::BEGIN@16 |
| 1 | 1 | 1 | 12µs | 20µs | Koha::Schema::Result::Virtualshelfcontent::BEGIN@13 |
| 1 | 1 | 1 | 8µs | 14µs | Koha::Schema::Result::Virtualshelfcontent::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 90µs | 2 | 49µs | # spent 43µs (37+6) within Class::C3::Componentised::BEGIN@1.1619 which was called:
# once (37µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 43µs making 1 call to Class::C3::Componentised::BEGIN@1.1619
# spent 6µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::Virtualshelfcontent; | ||||
| 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::Virtualshelfcontent | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 38µs | 2 | 29µs | # spent 20µs (12+9) within Koha::Schema::Result::Virtualshelfcontent::BEGIN@13 which was called:
# once (12µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 20µs making 1 call to Koha::Schema::Result::Virtualshelfcontent::BEGIN@13
# spent 9µs making 1 call to strict::import |
| 14 | 2 | 37µs | 2 | 21µs | # spent 14µs (8+6) within Koha::Schema::Result::Virtualshelfcontent::BEGIN@14 which was called:
# once (8µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 14µs making 1 call to Koha::Schema::Result::Virtualshelfcontent::BEGIN@14
# spent 6µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 298µs | 2 | 164µs | # spent 90µs (15+75) within Koha::Schema::Result::Virtualshelfcontent::BEGIN@16 which was called:
# once (15µs+75µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 90µs making 1 call to Koha::Schema::Result::Virtualshelfcontent::BEGIN@16
# spent 75µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<virtualshelfcontents> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 22µs | 1 | 335µs | __PACKAGE__->table("virtualshelfcontents"); # spent 335µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 shelfnumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | default_value: 0 | ||||
| 30 | is_foreign_key: 1 | ||||
| 31 | is_nullable: 0 | ||||
| 32 | |||||
| 33 | =head2 biblionumber | ||||
| 34 | |||||
| 35 | data_type: 'integer' | ||||
| 36 | default_value: 0 | ||||
| 37 | is_foreign_key: 1 | ||||
| 38 | is_nullable: 0 | ||||
| 39 | |||||
| 40 | =head2 flags | ||||
| 41 | |||||
| 42 | data_type: 'integer' | ||||
| 43 | is_nullable: 1 | ||||
| 44 | |||||
| 45 | =head2 dateadded | ||||
| 46 | |||||
| 47 | data_type: 'timestamp' | ||||
| 48 | datetime_undef_if_invalid: 1 | ||||
| 49 | default_value: current_timestamp | ||||
| 50 | is_nullable: 0 | ||||
| 51 | |||||
| 52 | =head2 borrowernumber | ||||
| 53 | |||||
| 54 | data_type: 'integer' | ||||
| 55 | is_foreign_key: 1 | ||||
| 56 | is_nullable: 1 | ||||
| 57 | |||||
| 58 | =cut | ||||
| 59 | |||||
| 60 | 1 | 22µs | 1 | 1.40ms | __PACKAGE__->add_columns( # spent 1.40ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 61 | "shelfnumber", | ||||
| 62 | { | ||||
| 63 | data_type => "integer", | ||||
| 64 | default_value => 0, | ||||
| 65 | is_foreign_key => 1, | ||||
| 66 | is_nullable => 0, | ||||
| 67 | }, | ||||
| 68 | "biblionumber", | ||||
| 69 | { | ||||
| 70 | data_type => "integer", | ||||
| 71 | default_value => 0, | ||||
| 72 | is_foreign_key => 1, | ||||
| 73 | is_nullable => 0, | ||||
| 74 | }, | ||||
| 75 | "flags", | ||||
| 76 | { data_type => "integer", is_nullable => 1 }, | ||||
| 77 | "dateadded", | ||||
| 78 | { | ||||
| 79 | data_type => "timestamp", | ||||
| 80 | datetime_undef_if_invalid => 1, | ||||
| 81 | default_value => \"current_timestamp", | ||||
| 82 | is_nullable => 0, | ||||
| 83 | }, | ||||
| 84 | "borrowernumber", | ||||
| 85 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 86 | ); | ||||
| 87 | |||||
| 88 | =head1 RELATIONS | ||||
| 89 | |||||
| 90 | =head2 biblionumber | ||||
| 91 | |||||
| 92 | Type: belongs_to | ||||
| 93 | |||||
| 94 | Related object: L<Koha::Schema::Result::Biblio> | ||||
| 95 | |||||
| 96 | =cut | ||||
| 97 | |||||
| 98 | 1 | 12µs | 1 | 410µs | __PACKAGE__->belongs_to( # spent 410µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 99 | "biblionumber", | ||||
| 100 | "Koha::Schema::Result::Biblio", | ||||
| 101 | { biblionumber => "biblionumber" }, | ||||
| 102 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 103 | ); | ||||
| 104 | |||||
| 105 | =head2 borrowernumber | ||||
| 106 | |||||
| 107 | Type: belongs_to | ||||
| 108 | |||||
| 109 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 110 | |||||
| 111 | =cut | ||||
| 112 | |||||
| 113 | 1 | 5µs | 1 | 218µs | __PACKAGE__->belongs_to( # spent 218µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 114 | "borrowernumber", | ||||
| 115 | "Koha::Schema::Result::Borrower", | ||||
| 116 | { borrowernumber => "borrowernumber" }, | ||||
| 117 | { | ||||
| 118 | is_deferrable => 1, | ||||
| 119 | join_type => "LEFT", | ||||
| 120 | on_delete => "SET NULL", | ||||
| 121 | on_update => "SET NULL", | ||||
| 122 | }, | ||||
| 123 | ); | ||||
| 124 | |||||
| 125 | =head2 shelfnumber | ||||
| 126 | |||||
| 127 | Type: belongs_to | ||||
| 128 | |||||
| 129 | Related object: L<Koha::Schema::Result::Virtualshelve> | ||||
| 130 | |||||
| 131 | =cut | ||||
| 132 | |||||
| 133 | 1 | 5µs | 1 | 690µs | __PACKAGE__->belongs_to( # spent 690µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 134 | "shelfnumber", | ||||
| 135 | "Koha::Schema::Result::Virtualshelve", | ||||
| 136 | { shelfnumber => "shelfnumber" }, | ||||
| 137 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 138 | ); | ||||
| 139 | |||||
| 140 | |||||
| 141 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
| 142 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ie3Gx+/HthZQ/4fHjcPF0w | ||||
| 143 | |||||
| 144 | #TODO See BZ 14544: Should be resolved by db revision | ||||
| 145 | 1 | 19µs | 1 | 81µs | __PACKAGE__->set_primary_key("shelfnumber","biblionumber"); # spent 81µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 146 | |||||
| 147 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 148 | 1 | 12µs | 1; |