| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/AuthorisedValuesBranch.pm |
| Statements | Executed 14 statements in 485µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 27µs | 31µs | Class::C3::Componentised::BEGIN@1.2345 |
| 1 | 1 | 1 | 12µs | 82µs | Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@16 |
| 1 | 1 | 1 | 11µs | 20µs | Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 17µs | Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 72µs | 2 | 34µs | # spent 31µs (27+4) within Class::C3::Componentised::BEGIN@1.2345 which was called:
# once (27µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 31µs making 1 call to Class::C3::Componentised::BEGIN@1.2345
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::AuthorisedValuesBranch; | ||||
| 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::AuthorisedValuesBranch | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 40µs | 2 | 29µs | # spent 20µs (11+9) within Koha::Schema::Result::AuthorisedValuesBranch::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::AuthorisedValuesBranch::BEGIN@13
# spent 9µs making 1 call to strict::import |
| 14 | 2 | 39µs | 2 | 25µs | # spent 17µs (10+7) within Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@14 which was called:
# once (10µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 17µs making 1 call to Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 232µs | 2 | 151µs | # spent 82µs (12+70) within Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@16 which was called:
# once (12µs+70µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 82µs making 1 call to Koha::Schema::Result::AuthorisedValuesBranch::BEGIN@16
# spent 70µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<authorised_values_branches> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 21µs | 1 | 4.73ms | __PACKAGE__->table("authorised_values_branches"); # spent 4.73ms making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 av_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_foreign_key: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 branchcode | ||||
| 33 | |||||
| 34 | data_type: 'varchar' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | size: 10 | ||||
| 38 | |||||
| 39 | =cut | ||||
| 40 | |||||
| 41 | 1 | 22µs | 1 | 1.37ms | __PACKAGE__->add_columns( # spent 1.37ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 42 | "av_id", | ||||
| 43 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 44 | "branchcode", | ||||
| 45 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
| 46 | ); | ||||
| 47 | |||||
| 48 | =head1 RELATIONS | ||||
| 49 | |||||
| 50 | =head2 av | ||||
| 51 | |||||
| 52 | Type: belongs_to | ||||
| 53 | |||||
| 54 | Related object: L<Koha::Schema::Result::AuthorisedValue> | ||||
| 55 | |||||
| 56 | =cut | ||||
| 57 | |||||
| 58 | 1 | 8µs | 1 | 300µs | __PACKAGE__->belongs_to( # spent 300µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 59 | "av", | ||||
| 60 | "Koha::Schema::Result::AuthorisedValue", | ||||
| 61 | { id => "av_id" }, | ||||
| 62 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||||
| 63 | ); | ||||
| 64 | |||||
| 65 | =head2 branchcode | ||||
| 66 | |||||
| 67 | Type: belongs_to | ||||
| 68 | |||||
| 69 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 70 | |||||
| 71 | =cut | ||||
| 72 | |||||
| 73 | 1 | 4µs | 1 | 269µs | __PACKAGE__->belongs_to( # spent 269µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 74 | "branchcode", | ||||
| 75 | "Koha::Schema::Result::Branch", | ||||
| 76 | { branchcode => "branchcode" }, | ||||
| 77 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||||
| 78 | ); | ||||
| 79 | |||||
| 80 | |||||
| 81 | # Created by DBIx::Class::Schema::Loader v0.07040 @ 2014-10-23 10:48:27 | ||||
| 82 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cjPAyQSK7F7sEkiWjCUE7Q | ||||
| 83 | |||||
| 84 | 1 | 31µs | 2 | 878µs | __PACKAGE__->set_primary_key(__PACKAGE__->columns); # spent 751µs making 1 call to DBIx::Class::ResultSourceProxy::columns
# spent 127µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 85 | |||||
| 86 | 1 | 15µs | 1; |