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