| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/DefaultBorrowerCircRule.pm |
| Statements | Executed 13 statements in 525µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 36µs | 41µs | Class::C3::Componentised::BEGIN@1.299 |
| 1 | 1 | 1 | 21µs | 116µs | Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@16 |
| 1 | 1 | 1 | 21µs | 31µs | Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@14 |
| 1 | 1 | 1 | 12µs | 24µs | Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@13 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 77µs | 2 | 46µs | # spent 41µs (36+5) within Class::C3::Componentised::BEGIN@1.299 which was called:
# once (36µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 41µs making 1 call to Class::C3::Componentised::BEGIN@1.299
# spent 5µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::DefaultBorrowerCircRule; | ||||
| 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::DefaultBorrowerCircRule | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 44µs | 2 | 36µs | # spent 24µs (12+12) within Koha::Schema::Result::DefaultBorrowerCircRule::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::DefaultBorrowerCircRule::BEGIN@13
# spent 12µs making 1 call to strict::import |
| 14 | 2 | 57µs | 2 | 40µs | # spent 31µs (21+10) within Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@14 which was called:
# once (21µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 31µs making 1 call to Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@14
# spent 10µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 249µs | 2 | 210µs | # spent 116µs (21+94) within Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@16 which was called:
# once (21µs+94µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 116µs making 1 call to Koha::Schema::Result::DefaultBorrowerCircRule::BEGIN@16
# spent 94µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<default_borrower_circ_rules> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 33µs | 1 | 398µs | __PACKAGE__->table("default_borrower_circ_rules"); # spent 398µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 categorycode | ||||
| 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 | =cut | ||||
| 44 | |||||
| 45 | 1 | 20µs | 1 | 320µs | __PACKAGE__->add_columns( # spent 320µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 46 | "categorycode", | ||||
| 47 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
| 48 | "maxissueqty", | ||||
| 49 | { data_type => "integer", is_nullable => 1 }, | ||||
| 50 | "maxonsiteissueqty", | ||||
| 51 | { data_type => "integer", is_nullable => 1 }, | ||||
| 52 | ); | ||||
| 53 | |||||
| 54 | =head1 PRIMARY KEY | ||||
| 55 | |||||
| 56 | =over 4 | ||||
| 57 | |||||
| 58 | =item * L</categorycode> | ||||
| 59 | |||||
| 60 | =back | ||||
| 61 | |||||
| 62 | =cut | ||||
| 63 | |||||
| 64 | 1 | 21µs | 1 | 78µs | __PACKAGE__->set_primary_key("categorycode"); # spent 78µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 65 | |||||
| 66 | =head1 RELATIONS | ||||
| 67 | |||||
| 68 | =head2 categorycode | ||||
| 69 | |||||
| 70 | Type: belongs_to | ||||
| 71 | |||||
| 72 | Related object: L<Koha::Schema::Result::Category> | ||||
| 73 | |||||
| 74 | =cut | ||||
| 75 | |||||
| 76 | 1 | 11µs | 1 | 1.07ms | __PACKAGE__->belongs_to( # spent 1.07ms making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 77 | "categorycode", | ||||
| 78 | "Koha::Schema::Result::Category", | ||||
| 79 | { categorycode => "categorycode" }, | ||||
| 80 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 81 | ); | ||||
| 82 | |||||
| 83 | |||||
| 84 | # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-05-13 17:48:39 | ||||
| 85 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EQ8PdQhM6+5K582+AL5ZXQ | ||||
| 86 | |||||
| 87 | |||||
| 88 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 89 | 1 | 11µs | 1; |