| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerAttribute.pm |
| Statements | Executed 13 statements in 427µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 30µs | 34µs | Class::C3::Componentised::BEGIN@1.390 |
| 1 | 1 | 1 | 10µs | 85µs | Koha::Schema::Result::BorrowerAttribute::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 16µs | Koha::Schema::Result::BorrowerAttribute::BEGIN@14 |
| 1 | 1 | 1 | 9µs | 18µs | Koha::Schema::Result::BorrowerAttribute::BEGIN@13 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 69µs | 2 | 38µs | # spent 34µs (30+4) within Class::C3::Componentised::BEGIN@1.390 which was called:
# once (30µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 34µs making 1 call to Class::C3::Componentised::BEGIN@1.390
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::BorrowerAttribute; | ||||
| 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::BorrowerAttribute | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 36µs | 2 | 26µs | # spent 18µs (9+8) within Koha::Schema::Result::BorrowerAttribute::BEGIN@13 which was called:
# once (9µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@13
# spent 8µs making 1 call to strict::import |
| 14 | 2 | 37µs | 2 | 23µs | # spent 16µs (10+7) within Koha::Schema::Result::BorrowerAttribute::BEGIN@14 which was called:
# once (10µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 223µs | 2 | 160µs | # spent 85µs (10+75) within Koha::Schema::Result::BorrowerAttribute::BEGIN@16 which was called:
# once (10µs+75µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 85µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@16
# spent 75µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<borrower_attributes> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 21µs | 1 | 308µs | __PACKAGE__->table("borrower_attributes"); # spent 308µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 borrowernumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_foreign_key: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 code | ||||
| 33 | |||||
| 34 | data_type: 'varchar' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | size: 10 | ||||
| 38 | |||||
| 39 | =head2 attribute | ||||
| 40 | |||||
| 41 | data_type: 'varchar' | ||||
| 42 | is_nullable: 1 | ||||
| 43 | size: 255 | ||||
| 44 | |||||
| 45 | =head2 password | ||||
| 46 | |||||
| 47 | data_type: 'varchar' | ||||
| 48 | is_nullable: 1 | ||||
| 49 | size: 64 | ||||
| 50 | |||||
| 51 | =cut | ||||
| 52 | |||||
| 53 | 1 | 19µs | 1 | 1.01ms | __PACKAGE__->add_columns( # spent 1.01ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 54 | "borrowernumber", | ||||
| 55 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 56 | "code", | ||||
| 57 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, | ||||
| 58 | "attribute", | ||||
| 59 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||||
| 60 | "password", | ||||
| 61 | { data_type => "varchar", is_nullable => 1, size => 64 }, | ||||
| 62 | ); | ||||
| 63 | |||||
| 64 | =head1 RELATIONS | ||||
| 65 | |||||
| 66 | =head2 borrowernumber | ||||
| 67 | |||||
| 68 | Type: belongs_to | ||||
| 69 | |||||
| 70 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 71 | |||||
| 72 | =cut | ||||
| 73 | |||||
| 74 | 1 | 10µs | 1 | 381µs | __PACKAGE__->belongs_to( # spent 381µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 75 | "borrowernumber", | ||||
| 76 | "Koha::Schema::Result::Borrower", | ||||
| 77 | { borrowernumber => "borrowernumber" }, | ||||
| 78 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 79 | ); | ||||
| 80 | |||||
| 81 | =head2 code | ||||
| 82 | |||||
| 83 | Type: belongs_to | ||||
| 84 | |||||
| 85 | Related object: L<Koha::Schema::Result::BorrowerAttributeType> | ||||
| 86 | |||||
| 87 | =cut | ||||
| 88 | |||||
| 89 | 1 | 4µs | 1 | 490µs | __PACKAGE__->belongs_to( # spent 490µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 90 | "code", | ||||
| 91 | "Koha::Schema::Result::BorrowerAttributeType", | ||||
| 92 | { code => "code" }, | ||||
| 93 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 94 | ); | ||||
| 95 | |||||
| 96 | |||||
| 97 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 98 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9oRy+X25+b7vB03WSnpFTg | ||||
| 99 | |||||
| 100 | |||||
| 101 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 102 | 1 | 8µs | 1; |