| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/TransportCost.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 23µs | 26µs | Class::C3::Componentised::BEGIN@1.2443 |
| 1 | 1 | 1 | 10µs | 18µs | Koha::Schema::Result::TransportCost::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 75µs | Koha::Schema::Result::TransportCost::BEGIN@16 |
| 1 | 1 | 1 | 8µs | 14µs | Koha::Schema::Result::TransportCost::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 29µs | # spent 26µs (23+3) within Class::C3::Componentised::BEGIN@1.2443 which was called:
# once (23µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 26µs making 1 call to Class::C3::Componentised::BEGIN@1.2443
# spent 3µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::TransportCost; | ||||
| 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::TransportCost | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 26µs | # spent 18µs (10+8) within Koha::Schema::Result::TransportCost::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::TransportCost::BEGIN@13
# spent 8µs making 1 call to strict::import | ||
| 14 | 2 | 20µs | # spent 14µs (8+6) within Koha::Schema::Result::TransportCost::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::TransportCost::BEGIN@14
# spent 6µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 142µs | # spent 75µs (9+66) within Koha::Schema::Result::TransportCost::BEGIN@16 which was called:
# once (9µs+66µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 75µs making 1 call to Koha::Schema::Result::TransportCost::BEGIN@16
# spent 66µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<transport_cost> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 294µs | __PACKAGE__->table("transport_cost"); # spent 294µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 frombranch | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | is_foreign_key: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | size: 10 | ||||
| 32 | |||||
| 33 | =head2 tobranch | ||||
| 34 | |||||
| 35 | data_type: 'varchar' | ||||
| 36 | is_foreign_key: 1 | ||||
| 37 | is_nullable: 0 | ||||
| 38 | size: 10 | ||||
| 39 | |||||
| 40 | =head2 cost | ||||
| 41 | |||||
| 42 | data_type: 'decimal' | ||||
| 43 | is_nullable: 0 | ||||
| 44 | size: [6,2] | ||||
| 45 | |||||
| 46 | =head2 disable_transfer | ||||
| 47 | |||||
| 48 | data_type: 'tinyint' | ||||
| 49 | default_value: 0 | ||||
| 50 | is_nullable: 0 | ||||
| 51 | |||||
| 52 | =cut | ||||
| 53 | |||||
| 54 | 1 | 1.12ms | __PACKAGE__->add_columns( # spent 1.12ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 55 | "frombranch", | ||||
| 56 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
| 57 | "tobranch", | ||||
| 58 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
| 59 | "cost", | ||||
| 60 | { data_type => "decimal", is_nullable => 0, size => [6, 2] }, | ||||
| 61 | "disable_transfer", | ||||
| 62 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
| 63 | ); | ||||
| 64 | |||||
| 65 | =head1 PRIMARY KEY | ||||
| 66 | |||||
| 67 | =over 4 | ||||
| 68 | |||||
| 69 | =item * L</frombranch> | ||||
| 70 | |||||
| 71 | =item * L</tobranch> | ||||
| 72 | |||||
| 73 | =back | ||||
| 74 | |||||
| 75 | =cut | ||||
| 76 | |||||
| 77 | 1 | 82µs | __PACKAGE__->set_primary_key("frombranch", "tobranch"); # spent 82µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 78 | |||||
| 79 | =head1 RELATIONS | ||||
| 80 | |||||
| 81 | =head2 frombranch | ||||
| 82 | |||||
| 83 | Type: belongs_to | ||||
| 84 | |||||
| 85 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 86 | |||||
| 87 | =cut | ||||
| 88 | |||||
| 89 | 1 | 403µs | __PACKAGE__->belongs_to( # spent 403µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 90 | "frombranch", | ||||
| 91 | "Koha::Schema::Result::Branch", | ||||
| 92 | { branchcode => "frombranch" }, | ||||
| 93 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 94 | ); | ||||
| 95 | |||||
| 96 | =head2 tobranch | ||||
| 97 | |||||
| 98 | Type: belongs_to | ||||
| 99 | |||||
| 100 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 101 | |||||
| 102 | =cut | ||||
| 103 | |||||
| 104 | 1 | 197µs | __PACKAGE__->belongs_to( # spent 197µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 105 | "tobranch", | ||||
| 106 | "Koha::Schema::Result::Branch", | ||||
| 107 | { branchcode => "tobranch" }, | ||||
| 108 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 109 | ); | ||||
| 110 | |||||
| 111 | |||||
| 112 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 113 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gMs7dT/xK4ClGqQEHI7HOQ | ||||
| 114 | |||||
| 115 | |||||
| 116 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 117 | 1; |