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