| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ItemsLastBorrower.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 24µs | 28µs | Class::C3::Componentised::BEGIN@1.1927 |
| 1 | 1 | 1 | 11µs | 86µs | Koha::Schema::Result::ItemsLastBorrower::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 18µs | Koha::Schema::Result::ItemsLastBorrower::BEGIN@13 |
| 1 | 1 | 1 | 8µs | 14µs | Koha::Schema::Result::ItemsLastBorrower::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 31µs | # spent 28µs (24+4) within Class::C3::Componentised::BEGIN@1.1927 which was called:
# once (24µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 28µs making 1 call to Class::C3::Componentised::BEGIN@1.1927
# spent 4µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::ItemsLastBorrower; | ||||
| 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::ItemsLastBorrower | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 27µs | # spent 18µs (10+8) within Koha::Schema::Result::ItemsLastBorrower::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::ItemsLastBorrower::BEGIN@13
# spent 8µs making 1 call to strict::import | ||
| 14 | 2 | 20µs | # spent 14µs (8+6) within Koha::Schema::Result::ItemsLastBorrower::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::ItemsLastBorrower::BEGIN@14
# spent 6µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 161µs | # spent 86µs (11+75) within Koha::Schema::Result::ItemsLastBorrower::BEGIN@16 which was called:
# once (11µs+75µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 86µs making 1 call to Koha::Schema::Result::ItemsLastBorrower::BEGIN@16
# spent 75µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<items_last_borrower> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 317µs | __PACKAGE__->table("items_last_borrower"); # spent 317µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 itemnumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 borrowernumber | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_foreign_key: 1 | ||||
| 42 | is_nullable: 0 | ||||
| 43 | |||||
| 44 | =head2 created_on | ||||
| 45 | |||||
| 46 | data_type: 'timestamp' | ||||
| 47 | datetime_undef_if_invalid: 1 | ||||
| 48 | default_value: current_timestamp | ||||
| 49 | is_nullable: 0 | ||||
| 50 | |||||
| 51 | =cut | ||||
| 52 | |||||
| 53 | 1 | 1.08ms | __PACKAGE__->add_columns( # spent 1.08ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 54 | "id", | ||||
| 55 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 56 | "itemnumber", | ||||
| 57 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 58 | "borrowernumber", | ||||
| 59 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 60 | "created_on", | ||||
| 61 | { | ||||
| 62 | data_type => "timestamp", | ||||
| 63 | datetime_undef_if_invalid => 1, | ||||
| 64 | default_value => \"current_timestamp", | ||||
| 65 | is_nullable => 0, | ||||
| 66 | }, | ||||
| 67 | ); | ||||
| 68 | |||||
| 69 | =head1 PRIMARY KEY | ||||
| 70 | |||||
| 71 | =over 4 | ||||
| 72 | |||||
| 73 | =item * L</id> | ||||
| 74 | |||||
| 75 | =back | ||||
| 76 | |||||
| 77 | =cut | ||||
| 78 | |||||
| 79 | 1 | 74µs | __PACKAGE__->set_primary_key("id"); # spent 74µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 80 | |||||
| 81 | =head1 UNIQUE CONSTRAINTS | ||||
| 82 | |||||
| 83 | =head2 C<itemnumber> | ||||
| 84 | |||||
| 85 | =over 4 | ||||
| 86 | |||||
| 87 | =item * L</itemnumber> | ||||
| 88 | |||||
| 89 | =back | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 31µs | __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); # spent 31µs making 1 call to DBIx::Class::ResultSourceProxy::add_unique_constraint | ||
| 94 | |||||
| 95 | =head1 RELATIONS | ||||
| 96 | |||||
| 97 | =head2 borrowernumber | ||||
| 98 | |||||
| 99 | Type: belongs_to | ||||
| 100 | |||||
| 101 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 102 | |||||
| 103 | =cut | ||||
| 104 | |||||
| 105 | 1 | 382µs | __PACKAGE__->belongs_to( # spent 382µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 106 | "borrowernumber", | ||||
| 107 | "Koha::Schema::Result::Borrower", | ||||
| 108 | { borrowernumber => "borrowernumber" }, | ||||
| 109 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 110 | ); | ||||
| 111 | |||||
| 112 | =head2 itemnumber | ||||
| 113 | |||||
| 114 | Type: belongs_to | ||||
| 115 | |||||
| 116 | Related object: L<Koha::Schema::Result::Item> | ||||
| 117 | |||||
| 118 | =cut | ||||
| 119 | |||||
| 120 | 1 | 212µs | __PACKAGE__->belongs_to( # spent 212µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 121 | "itemnumber", | ||||
| 122 | "Koha::Schema::Result::Item", | ||||
| 123 | { itemnumber => "itemnumber" }, | ||||
| 124 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 125 | ); | ||||
| 126 | |||||
| 127 | |||||
| 128 | # Created by DBIx::Class::Schema::Loader v0.07040 @ 2015-10-02 12:33:33 | ||||
| 129 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ByHKNZCEz4a1AqTnOJgUWA | ||||
| 130 | |||||
| 131 | |||||
| 132 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 133 | 1; |