| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Review.pm |
| Statements | Executed 14 statements in 616µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 130µs | 136µs | Class::C3::Componentised::BEGIN@1.2176 |
| 1 | 1 | 1 | 20µs | 35µs | Koha::Schema::Result::Review::BEGIN@13 |
| 1 | 1 | 1 | 12µs | 98µs | Koha::Schema::Result::Review::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 20µs | Koha::Schema::Result::Review::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 120µs | 2 | 142µs | # spent 136µs (130+6) within Class::C3::Componentised::BEGIN@1.2176 which was called:
# once (130µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 136µs making 1 call to Class::C3::Componentised::BEGIN@1.2176
# spent 6µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::Review; | ||||
| 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::Review | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 58µs | 2 | 50µs | # spent 35µs (20+15) within Koha::Schema::Result::Review::BEGIN@13 which was called:
# once (20µs+15µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 35µs making 1 call to Koha::Schema::Result::Review::BEGIN@13
# spent 15µs making 1 call to strict::import |
| 14 | 2 | 45µs | 2 | 31µs | # spent 20µs (10+10) within Koha::Schema::Result::Review::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::Review::BEGIN@14
# spent 10µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 297µs | 2 | 184µs | # spent 98µs (12+86) within Koha::Schema::Result::Review::BEGIN@16 which was called:
# once (12µs+86µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 98µs making 1 call to Koha::Schema::Result::Review::BEGIN@16
# spent 86µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<reviews> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 28µs | 1 | 360µs | __PACKAGE__->table("reviews"); # spent 360µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 reviewid | ||||
| 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: 1 | ||||
| 37 | |||||
| 38 | =head2 biblionumber | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_foreign_key: 1 | ||||
| 42 | is_nullable: 1 | ||||
| 43 | |||||
| 44 | =head2 review | ||||
| 45 | |||||
| 46 | data_type: 'text' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | |||||
| 49 | =head2 approved | ||||
| 50 | |||||
| 51 | data_type: 'tinyint' | ||||
| 52 | is_nullable: 1 | ||||
| 53 | |||||
| 54 | =head2 datereviewed | ||||
| 55 | |||||
| 56 | data_type: 'datetime' | ||||
| 57 | datetime_undef_if_invalid: 1 | ||||
| 58 | is_nullable: 1 | ||||
| 59 | |||||
| 60 | =cut | ||||
| 61 | |||||
| 62 | 1 | 22µs | 1 | 3.80ms | __PACKAGE__->add_columns( # spent 3.80ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 63 | "reviewid", | ||||
| 64 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 65 | "borrowernumber", | ||||
| 66 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 67 | "biblionumber", | ||||
| 68 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 69 | "review", | ||||
| 70 | { data_type => "text", is_nullable => 1 }, | ||||
| 71 | "approved", | ||||
| 72 | { data_type => "tinyint", is_nullable => 1 }, | ||||
| 73 | "datereviewed", | ||||
| 74 | { | ||||
| 75 | data_type => "datetime", | ||||
| 76 | datetime_undef_if_invalid => 1, | ||||
| 77 | is_nullable => 1, | ||||
| 78 | }, | ||||
| 79 | ); | ||||
| 80 | |||||
| 81 | =head1 PRIMARY KEY | ||||
| 82 | |||||
| 83 | =over 4 | ||||
| 84 | |||||
| 85 | =item * L</reviewid> | ||||
| 86 | |||||
| 87 | =back | ||||
| 88 | |||||
| 89 | =cut | ||||
| 90 | |||||
| 91 | 1 | 19µs | 1 | 84µs | __PACKAGE__->set_primary_key("reviewid"); # spent 84µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 92 | |||||
| 93 | =head1 RELATIONS | ||||
| 94 | |||||
| 95 | =head2 biblionumber | ||||
| 96 | |||||
| 97 | Type: belongs_to | ||||
| 98 | |||||
| 99 | Related object: L<Koha::Schema::Result::Biblio> | ||||
| 100 | |||||
| 101 | =cut | ||||
| 102 | |||||
| 103 | 1 | 11µs | 1 | 388µs | __PACKAGE__->belongs_to( # spent 388µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 104 | "biblionumber", | ||||
| 105 | "Koha::Schema::Result::Biblio", | ||||
| 106 | { biblionumber => "biblionumber" }, | ||||
| 107 | { | ||||
| 108 | is_deferrable => 1, | ||||
| 109 | join_type => "LEFT", | ||||
| 110 | on_delete => "CASCADE", | ||||
| 111 | on_update => "CASCADE", | ||||
| 112 | }, | ||||
| 113 | ); | ||||
| 114 | |||||
| 115 | =head2 borrowernumber | ||||
| 116 | |||||
| 117 | Type: belongs_to | ||||
| 118 | |||||
| 119 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 120 | |||||
| 121 | =cut | ||||
| 122 | |||||
| 123 | 1 | 4µs | 1 | 196µs | __PACKAGE__->belongs_to( # spent 196µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 124 | "borrowernumber", | ||||
| 125 | "Koha::Schema::Result::Borrower", | ||||
| 126 | { borrowernumber => "borrowernumber" }, | ||||
| 127 | { | ||||
| 128 | is_deferrable => 1, | ||||
| 129 | join_type => "LEFT", | ||||
| 130 | on_delete => "SET NULL", | ||||
| 131 | on_update => "CASCADE", | ||||
| 132 | }, | ||||
| 133 | ); | ||||
| 134 | |||||
| 135 | |||||
| 136 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
| 137 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u+R08bCdVQA697aPo9zEUA | ||||
| 138 | |||||
| 139 | |||||
| 140 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 141 | 1 | 10µs | 1; |