| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerAttribute.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 39µs | 43µs | Class::C3::Componentised::BEGIN@1.994 |
| 1 | 1 | 1 | 12µs | 26µs | Koha::Schema::Result::BorrowerAttribute::BEGIN@13 |
| 1 | 1 | 1 | 11µs | 92µs | Koha::Schema::Result::BorrowerAttribute::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 20µs | Koha::Schema::Result::BorrowerAttribute::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 48µs | # spent 43µs (39+5) within Class::C3::Componentised::BEGIN@1.994 which was called:
# once (39µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 43µs making 1 call to Class::C3::Componentised::BEGIN@1.994
# spent 5µ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 | 39µs | # spent 26µs (12+14) within Koha::Schema::Result::BorrowerAttribute::BEGIN@13 which was called:
# once (12µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 26µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@13
# spent 14µs making 1 call to strict::import | ||
| 14 | 2 | 30µs | # spent 20µs (10+10) within Koha::Schema::Result::BorrowerAttribute::BEGIN@14 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 20µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@14
# spent 10µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 172µs | # spent 92µs (11+81) within Koha::Schema::Result::BorrowerAttribute::BEGIN@16 which was called:
# once (11µs+81µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 92µs making 1 call to Koha::Schema::Result::BorrowerAttribute::BEGIN@16
# spent 81µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<borrower_attributes> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 346µs | __PACKAGE__->table("borrower_attributes"); # spent 346µ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 | 813µs | __PACKAGE__->add_columns( # spent 813µs 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 | 415µs | __PACKAGE__->belongs_to( # spent 415µ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.85ms | __PACKAGE__->belongs_to( # spent 4.85ms 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; |