| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerDebarment.pm |
| Statements | Executed 13 statements in 499µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 28µs | Class::C3::Componentised::BEGIN@1.2027 |
| 1 | 1 | 1 | 10µs | 17µs | Koha::Schema::Result::BorrowerDebarment::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 69µs | Koha::Schema::Result::BorrowerDebarment::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 14µs | Koha::Schema::Result::BorrowerDebarment::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 77µs | 2 | 31µs | # spent 28µs (26+3) within Class::C3::Componentised::BEGIN@1.2027 which was called:
# once (26µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 28µs making 1 call to Class::C3::Componentised::BEGIN@1.2027
# spent 3µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::BorrowerDebarment; | ||||
| 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::BorrowerDebarment | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 36µs | 2 | 25µs | # spent 17µs (10+8) within Koha::Schema::Result::BorrowerDebarment::BEGIN@13 which was called:
# once (10µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 17µs making 1 call to Koha::Schema::Result::BorrowerDebarment::BEGIN@13
# spent 8µs making 1 call to strict::import |
| 14 | 2 | 34µs | 2 | 19µs | # spent 14µs (9+5) within Koha::Schema::Result::BorrowerDebarment::BEGIN@14 which was called:
# once (9µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 14µs making 1 call to Koha::Schema::Result::BorrowerDebarment::BEGIN@14
# spent 5µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 263µs | 2 | 129µs | # spent 69µs (9+60) within Koha::Schema::Result::BorrowerDebarment::BEGIN@16 which was called:
# once (9µs+60µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 69µs making 1 call to Koha::Schema::Result::BorrowerDebarment::BEGIN@16
# spent 60µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<borrower_debarments> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 20µs | 1 | 356µs | __PACKAGE__->table("borrower_debarments"); # spent 356µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 borrower_debarment_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 borrowernumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 expiration | ||||
| 39 | |||||
| 40 | data_type: 'date' | ||||
| 41 | datetime_undef_if_invalid: 1 | ||||
| 42 | is_nullable: 1 | ||||
| 43 | |||||
| 44 | =head2 type | ||||
| 45 | |||||
| 46 | data_type: 'enum' | ||||
| 47 | default_value: 'MANUAL' | ||||
| 48 | extra: {list => ["SUSPENSION","OVERDUES","MANUAL","DISCHARGE"]} | ||||
| 49 | is_nullable: 0 | ||||
| 50 | |||||
| 51 | =head2 comment | ||||
| 52 | |||||
| 53 | data_type: 'text' | ||||
| 54 | is_nullable: 1 | ||||
| 55 | |||||
| 56 | =head2 manager_id | ||||
| 57 | |||||
| 58 | data_type: 'integer' | ||||
| 59 | is_nullable: 1 | ||||
| 60 | |||||
| 61 | =head2 created | ||||
| 62 | |||||
| 63 | data_type: 'timestamp' | ||||
| 64 | datetime_undef_if_invalid: 1 | ||||
| 65 | default_value: current_timestamp | ||||
| 66 | is_nullable: 0 | ||||
| 67 | |||||
| 68 | =head2 updated | ||||
| 69 | |||||
| 70 | data_type: 'timestamp' | ||||
| 71 | datetime_undef_if_invalid: 1 | ||||
| 72 | is_nullable: 1 | ||||
| 73 | |||||
| 74 | =cut | ||||
| 75 | |||||
| 76 | 1 | 28µs | 1 | 3.57ms | __PACKAGE__->add_columns( # spent 3.57ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 77 | "borrower_debarment_id", | ||||
| 78 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 79 | "borrowernumber", | ||||
| 80 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 81 | "expiration", | ||||
| 82 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 83 | "type", | ||||
| 84 | { | ||||
| 85 | data_type => "enum", | ||||
| 86 | default_value => "MANUAL", | ||||
| 87 | extra => { list => ["SUSPENSION", "OVERDUES", "MANUAL", "DISCHARGE"] }, | ||||
| 88 | is_nullable => 0, | ||||
| 89 | }, | ||||
| 90 | "comment", | ||||
| 91 | { data_type => "text", is_nullable => 1 }, | ||||
| 92 | "manager_id", | ||||
| 93 | { data_type => "integer", is_nullable => 1 }, | ||||
| 94 | "created", | ||||
| 95 | { | ||||
| 96 | data_type => "timestamp", | ||||
| 97 | datetime_undef_if_invalid => 1, | ||||
| 98 | default_value => \"current_timestamp", | ||||
| 99 | is_nullable => 0, | ||||
| 100 | }, | ||||
| 101 | "updated", | ||||
| 102 | { | ||||
| 103 | data_type => "timestamp", | ||||
| 104 | datetime_undef_if_invalid => 1, | ||||
| 105 | is_nullable => 1, | ||||
| 106 | }, | ||||
| 107 | ); | ||||
| 108 | |||||
| 109 | =head1 PRIMARY KEY | ||||
| 110 | |||||
| 111 | =over 4 | ||||
| 112 | |||||
| 113 | =item * L</borrower_debarment_id> | ||||
| 114 | |||||
| 115 | =back | ||||
| 116 | |||||
| 117 | =cut | ||||
| 118 | |||||
| 119 | 1 | 18µs | 1 | 82µs | __PACKAGE__->set_primary_key("borrower_debarment_id"); # spent 82µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 120 | |||||
| 121 | =head1 RELATIONS | ||||
| 122 | |||||
| 123 | =head2 borrowernumber | ||||
| 124 | |||||
| 125 | Type: belongs_to | ||||
| 126 | |||||
| 127 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 128 | |||||
| 129 | =cut | ||||
| 130 | |||||
| 131 | 1 | 10µs | 1 | 406µs | __PACKAGE__->belongs_to( # spent 406µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 132 | "borrowernumber", | ||||
| 133 | "Koha::Schema::Result::Borrower", | ||||
| 134 | { borrowernumber => "borrowernumber" }, | ||||
| 135 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 136 | ); | ||||
| 137 | |||||
| 138 | |||||
| 139 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-01-07 17:25:44 | ||||
| 140 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4KkoPNcgZoANIScMWUyS/w | ||||
| 141 | |||||
| 142 | |||||
| 143 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 144 | 1 | 12µs | 1; |