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