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