| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/DefaultBranchCircRule.pm |
| Statements | Executed 13 statements in 566µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 62µs | 72µs | Class::C3::Componentised::BEGIN@1.1539 |
| 1 | 1 | 1 | 25µs | 39µs | Koha::Schema::Result::DefaultBranchCircRule::BEGIN@13 |
| 1 | 1 | 1 | 18µs | 29µs | Koha::Schema::Result::DefaultBranchCircRule::BEGIN@14 |
| 1 | 1 | 1 | 13µs | 94µs | Koha::Schema::Result::DefaultBranchCircRule::BEGIN@16 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 119µs | 2 | 82µs | # spent 72µs (62+10) within Class::C3::Componentised::BEGIN@1.1539 which was called:
# once (62µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 72µs making 1 call to Class::C3::Componentised::BEGIN@1.1539
# spent 10µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::DefaultBranchCircRule; | ||||
| 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::DefaultBranchCircRule | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 65µs | 2 | 53µs | # spent 39µs (25+14) within Koha::Schema::Result::DefaultBranchCircRule::BEGIN@13 which was called:
# once (25µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 39µs making 1 call to Koha::Schema::Result::DefaultBranchCircRule::BEGIN@13
# spent 14µs making 1 call to strict::import |
| 14 | 2 | 58µs | 2 | 41µs | # spent 29µs (18+12) within Koha::Schema::Result::DefaultBranchCircRule::BEGIN@14 which was called:
# once (18µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 29µs making 1 call to Koha::Schema::Result::DefaultBranchCircRule::BEGIN@14
# spent 12µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 238µs | 2 | 174µs | # spent 94µs (13+80) within Koha::Schema::Result::DefaultBranchCircRule::BEGIN@16 which was called:
# once (13µs+80µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 94µs making 1 call to Koha::Schema::Result::DefaultBranchCircRule::BEGIN@16
# spent 80µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<default_branch_circ_rules> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 21µs | 1 | 370µs | __PACKAGE__->table("default_branch_circ_rules"); # spent 370µ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 maxissueqty | ||||
| 34 | |||||
| 35 | data_type: 'integer' | ||||
| 36 | is_nullable: 1 | ||||
| 37 | |||||
| 38 | =head2 maxonsiteissueqty | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_nullable: 1 | ||||
| 42 | |||||
| 43 | =head2 holdallowed | ||||
| 44 | |||||
| 45 | data_type: 'tinyint' | ||||
| 46 | is_nullable: 1 | ||||
| 47 | |||||
| 48 | =head2 returnbranch | ||||
| 49 | |||||
| 50 | data_type: 'varchar' | ||||
| 51 | is_nullable: 1 | ||||
| 52 | size: 15 | ||||
| 53 | |||||
| 54 | =cut | ||||
| 55 | |||||
| 56 | 1 | 25µs | 1 | 490µs | __PACKAGE__->add_columns( # spent 490µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 57 | "branchcode", | ||||
| 58 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
| 59 | "maxissueqty", | ||||
| 60 | { data_type => "integer", is_nullable => 1 }, | ||||
| 61 | "maxonsiteissueqty", | ||||
| 62 | { data_type => "integer", is_nullable => 1 }, | ||||
| 63 | "holdallowed", | ||||
| 64 | { data_type => "tinyint", is_nullable => 1 }, | ||||
| 65 | "returnbranch", | ||||
| 66 | { data_type => "varchar", is_nullable => 1, size => 15 }, | ||||
| 67 | ); | ||||
| 68 | |||||
| 69 | =head1 PRIMARY KEY | ||||
| 70 | |||||
| 71 | =over 4 | ||||
| 72 | |||||
| 73 | =item * L</branchcode> | ||||
| 74 | |||||
| 75 | =back | ||||
| 76 | |||||
| 77 | =cut | ||||
| 78 | |||||
| 79 | 1 | 21µs | 1 | 77µs | __PACKAGE__->set_primary_key("branchcode"); # spent 77µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 80 | |||||
| 81 | =head1 RELATIONS | ||||
| 82 | |||||
| 83 | =head2 branchcode | ||||
| 84 | |||||
| 85 | Type: belongs_to | ||||
| 86 | |||||
| 87 | Related object: L<Koha::Schema::Result::Branch> | ||||
| 88 | |||||
| 89 | =cut | ||||
| 90 | |||||
| 91 | 1 | 9µs | 1 | 423µs | __PACKAGE__->belongs_to( # spent 423µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 92 | "branchcode", | ||||
| 93 | "Koha::Schema::Result::Branch", | ||||
| 94 | { branchcode => "branchcode" }, | ||||
| 95 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 96 | ); | ||||
| 97 | |||||
| 98 | |||||
| 99 | # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-05-13 17:48:39 | ||||
| 100 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:p95r3cEx85NtMTEAgiRgBw | ||||
| 101 | |||||
| 102 | |||||
| 103 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 104 | 1 | 9µs | 1; |