| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerAttributeTypesBranch.pm |
| Statements | Executed 13 statements in 435µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 25µs | 28µs | Class::C3::Componentised::BEGIN@1.2158 |
| 1 | 1 | 1 | 10µs | 90µs | Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 18µs | Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 16µs | Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 71µs | 2 | 31µs | # spent 28µs (25+3) within Class::C3::Componentised::BEGIN@1.2158 which was called:
# once (25µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 28µs making 1 call to Class::C3::Componentised::BEGIN@1.2158
# spent 3µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::BorrowerAttributeTypesBranch; | ||||
| 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::BorrowerAttributeTypesBranch | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 38µs | 2 | 27µs | # spent 18µs (10+9) within Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@13 which was called:
# once (10µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@13
# spent 8µs making 1 call to strict::import |
| 14 | 2 | 37µs | 2 | 23µs | # spent 16µs (9+7) within Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@14 which was called:
# once (9µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 226µs | 2 | 170µs | # spent 90µs (10+80) within Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@16 which was called:
# once (10µs+80µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 90µs making 1 call to Koha::Schema::Result::BorrowerAttributeTypesBranch::BEGIN@16
# spent 80µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<borrower_attribute_types_branches> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 18µs | 1 | 340µs | __PACKAGE__->table("borrower_attribute_types_branches"); # spent 340µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 bat_code | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | is_foreign_key: 1 | ||||
| 30 | is_nullable: 1 | ||||
| 31 | size: 10 | ||||
| 32 | |||||
| 33 | =head2 b_branchcode | ||||
| 34 | |||||
| 35 | data_type: 'varchar' | ||||
| 36 | is_foreign_key: 1 | ||||
| 37 | is_nullable: 1 | ||||
| 38 | size: 10 | ||||
| 39 | |||||
| 40 | =cut | ||||
| 41 | |||||
| 42 | 1 | 19µs | 1 | 1.29ms | __PACKAGE__->add_columns( # spent 1.29ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 43 | "bat_code", | ||||
| 44 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
| 45 | "b_branchcode", | ||||
| 46 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
| 47 | ); | ||||
| 48 | |||||
| 49 | =head1 RELATIONS | ||||
| 50 | |||||
| 51 | =head2 b_branchcode | ||||
| 52 | |||||
| 53 | Type: belongs_to | ||||
| 54 | |||||
| 55 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 56 | |||||
| 57 | =cut | ||||
| 58 | |||||
| 59 | 1 | 10µs | 1 | 862µs | __PACKAGE__->belongs_to( # spent 862µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 60 | "b_branchcode", | ||||
| 61 | "Koha::Schema::Result::Branch", | ||||
| 62 | { branchcode => "b_branchcode" }, | ||||
| 63 | { | ||||
| 64 | is_deferrable => 1, | ||||
| 65 | join_type => "LEFT", | ||||
| 66 | on_delete => "CASCADE", | ||||
| 67 | on_update => "RESTRICT", | ||||
| 68 | }, | ||||
| 69 | ); | ||||
| 70 | |||||
| 71 | =head2 bat_code | ||||
| 72 | |||||
| 73 | Type: belongs_to | ||||
| 74 | |||||
| 75 | Related object: L<Koha::Schema::Result::BorrowerAttributeType> | ||||
| 76 | |||||
| 77 | =cut | ||||
| 78 | |||||
| 79 | 1 | 8µs | 1 | 927µs | __PACKAGE__->belongs_to( # spent 927µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 80 | "bat_code", | ||||
| 81 | "Koha::Schema::Result::BorrowerAttributeType", | ||||
| 82 | { code => "bat_code" }, | ||||
| 83 | { | ||||
| 84 | is_deferrable => 1, | ||||
| 85 | join_type => "LEFT", | ||||
| 86 | on_delete => "CASCADE", | ||||
| 87 | on_update => "RESTRICT", | ||||
| 88 | }, | ||||
| 89 | ); | ||||
| 90 | |||||
| 91 | |||||
| 92 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
| 93 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MA/VDd/K/RTgZ9TLy0K1gw | ||||
| 94 | |||||
| 95 | |||||
| 96 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 97 | 1 | 7µs | 1; |