| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Discharge.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 28µs | 31µs | Class::C3::Componentised::BEGIN@1.1731 |
| 1 | 1 | 1 | 9µs | 18µs | Koha::Schema::Result::Discharge::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 16µs | Koha::Schema::Result::Discharge::BEGIN@14 |
| 1 | 1 | 1 | 8µs | 73µs | Koha::Schema::Result::Discharge::BEGIN@16 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 35µs | # spent 31µs (28+3) within Class::C3::Componentised::BEGIN@1.1731 which was called:
# once (28µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 31µs making 1 call to Class::C3::Componentised::BEGIN@1.1731
# spent 4µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::Discharge; | ||||
| 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::Discharge | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 27µs | # spent 18µs (9+9) within Koha::Schema::Result::Discharge::BEGIN@13 which was called:
# once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::Discharge::BEGIN@13
# spent 9µs making 1 call to strict::import | ||
| 14 | 2 | 22µs | # spent 16µs (9+7) within Koha::Schema::Result::Discharge::BEGIN@14 which was called:
# once (9µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::Discharge::BEGIN@14
# spent 7µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 138µs | # spent 73µs (8+65) within Koha::Schema::Result::Discharge::BEGIN@16 which was called:
# once (8µs+65µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 73µs making 1 call to Koha::Schema::Result::Discharge::BEGIN@16
# spent 65µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<discharges> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 324µs | __PACKAGE__->table("discharges"); # spent 324µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 discharge_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 borrower | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 1 | ||||
| 37 | |||||
| 38 | =head2 needed | ||||
| 39 | |||||
| 40 | data_type: 'timestamp' | ||||
| 41 | datetime_undef_if_invalid: 1 | ||||
| 42 | is_nullable: 1 | ||||
| 43 | |||||
| 44 | =head2 validated | ||||
| 45 | |||||
| 46 | data_type: 'timestamp' | ||||
| 47 | datetime_undef_if_invalid: 1 | ||||
| 48 | is_nullable: 1 | ||||
| 49 | |||||
| 50 | =cut | ||||
| 51 | |||||
| 52 | 1 | 2.37ms | __PACKAGE__->add_columns( # spent 2.37ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 53 | "discharge_id", | ||||
| 54 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 55 | "borrower", | ||||
| 56 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 57 | "needed", | ||||
| 58 | { | ||||
| 59 | data_type => "timestamp", | ||||
| 60 | datetime_undef_if_invalid => 1, | ||||
| 61 | is_nullable => 1, | ||||
| 62 | }, | ||||
| 63 | "validated", | ||||
| 64 | { | ||||
| 65 | data_type => "timestamp", | ||||
| 66 | datetime_undef_if_invalid => 1, | ||||
| 67 | is_nullable => 1, | ||||
| 68 | }, | ||||
| 69 | ); | ||||
| 70 | |||||
| 71 | =head1 PRIMARY KEY | ||||
| 72 | |||||
| 73 | =over 4 | ||||
| 74 | |||||
| 75 | =item * L</discharge_id> | ||||
| 76 | |||||
| 77 | =back | ||||
| 78 | |||||
| 79 | =cut | ||||
| 80 | |||||
| 81 | 1 | 78µs | __PACKAGE__->set_primary_key("discharge_id"); # spent 78µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 82 | |||||
| 83 | =head1 RELATIONS | ||||
| 84 | |||||
| 85 | =head2 borrower | ||||
| 86 | |||||
| 87 | Type: belongs_to | ||||
| 88 | |||||
| 89 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 839µs | __PACKAGE__->belongs_to( # spent 839µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 94 | "borrower", | ||||
| 95 | "Koha::Schema::Result::Borrower", | ||||
| 96 | { borrowernumber => "borrower" }, | ||||
| 97 | { | ||||
| 98 | is_deferrable => 1, | ||||
| 99 | join_type => "LEFT", | ||||
| 100 | on_delete => "CASCADE", | ||||
| 101 | on_update => "CASCADE", | ||||
| 102 | }, | ||||
| 103 | ); | ||||
| 104 | |||||
| 105 | |||||
| 106 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-28 12:09:06 | ||||
| 107 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wc3EkS92v98jXtena5VaUQ | ||||
| 108 | |||||
| 109 | |||||
| 110 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||||
| 111 | 1; |