| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/TagsApproval.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 44µs | 49µs | Class::C3::Componentised::BEGIN@1.2432 |
| 1 | 1 | 1 | 12µs | 25µs | Koha::Schema::Result::TagsApproval::BEGIN@13 |
| 1 | 1 | 1 | 11µs | 126µs | Koha::Schema::Result::TagsApproval::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 20µs | Koha::Schema::Result::TagsApproval::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 54µs | # spent 49µs (44+5) within Class::C3::Componentised::BEGIN@1.2432 which was called:
# once (44µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 49µs making 1 call to Class::C3::Componentised::BEGIN@1.2432
# spent 5µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::TagsApproval; | ||||
| 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::TagsApproval | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 38µs | # spent 25µs (12+13) within Koha::Schema::Result::TagsApproval::BEGIN@13 which was called:
# once (12µs+13µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 25µs making 1 call to Koha::Schema::Result::TagsApproval::BEGIN@13
# spent 13µs making 1 call to strict::import | ||
| 14 | 2 | 30µs | # spent 20µs (10+10) within Koha::Schema::Result::TagsApproval::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::TagsApproval::BEGIN@14
# spent 10µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 241µs | # spent 126µs (11+115) within Koha::Schema::Result::TagsApproval::BEGIN@16 which was called:
# once (11µs+115µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 126µs making 1 call to Koha::Schema::Result::TagsApproval::BEGIN@16
# spent 115µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<tags_approval> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 279µs | __PACKAGE__->table("tags_approval"); # spent 279µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 term | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | is_nullable: 0 | ||||
| 30 | size: 255 | ||||
| 31 | |||||
| 32 | =head2 approved | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | default_value: 0 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 date_approved | ||||
| 39 | |||||
| 40 | data_type: 'datetime' | ||||
| 41 | datetime_undef_if_invalid: 1 | ||||
| 42 | is_nullable: 1 | ||||
| 43 | |||||
| 44 | =head2 approved_by | ||||
| 45 | |||||
| 46 | data_type: 'integer' | ||||
| 47 | is_foreign_key: 1 | ||||
| 48 | is_nullable: 1 | ||||
| 49 | |||||
| 50 | =head2 weight_total | ||||
| 51 | |||||
| 52 | data_type: 'integer' | ||||
| 53 | default_value: 1 | ||||
| 54 | is_nullable: 0 | ||||
| 55 | |||||
| 56 | =cut | ||||
| 57 | |||||
| 58 | 1 | 2.95ms | __PACKAGE__->add_columns( # spent 2.95ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 59 | "term", | ||||
| 60 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||||
| 61 | "approved", | ||||
| 62 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
| 63 | "date_approved", | ||||
| 64 | { | ||||
| 65 | data_type => "datetime", | ||||
| 66 | datetime_undef_if_invalid => 1, | ||||
| 67 | is_nullable => 1, | ||||
| 68 | }, | ||||
| 69 | "approved_by", | ||||
| 70 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
| 71 | "weight_total", | ||||
| 72 | { data_type => "integer", default_value => 1, is_nullable => 0 }, | ||||
| 73 | ); | ||||
| 74 | |||||
| 75 | =head1 PRIMARY KEY | ||||
| 76 | |||||
| 77 | =over 4 | ||||
| 78 | |||||
| 79 | =item * L</term> | ||||
| 80 | |||||
| 81 | =back | ||||
| 82 | |||||
| 83 | =cut | ||||
| 84 | |||||
| 85 | 1 | 92µs | __PACKAGE__->set_primary_key("term"); # spent 92µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 86 | |||||
| 87 | =head1 RELATIONS | ||||
| 88 | |||||
| 89 | =head2 approved_by | ||||
| 90 | |||||
| 91 | Type: belongs_to | ||||
| 92 | |||||
| 93 | Related object: L<Koha::Schema::Result::Borrower> | ||||
| 94 | |||||
| 95 | =cut | ||||
| 96 | |||||
| 97 | 1 | 12.9ms | __PACKAGE__->belongs_to( # spent 12.9ms making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 98 | "approved_by", | ||||
| 99 | "Koha::Schema::Result::Borrower", | ||||
| 100 | { borrowernumber => "approved_by" }, | ||||
| 101 | { | ||||
| 102 | is_deferrable => 1, | ||||
| 103 | join_type => "LEFT", | ||||
| 104 | on_delete => "CASCADE", | ||||
| 105 | on_update => "CASCADE", | ||||
| 106 | }, | ||||
| 107 | ); | ||||
| 108 | |||||
| 109 | =head2 tags_indexes | ||||
| 110 | |||||
| 111 | Type: has_many | ||||
| 112 | |||||
| 113 | Related object: L<Koha::Schema::Result::TagsIndex> | ||||
| 114 | |||||
| 115 | =cut | ||||
| 116 | |||||
| 117 | 1 | 361µs | __PACKAGE__->has_many( # spent 361µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 118 | "tags_indexes", | ||||
| 119 | "Koha::Schema::Result::TagsIndex", | ||||
| 120 | { "foreign.term" => "self.term" }, | ||||
| 121 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 122 | ); | ||||
| 123 | |||||
| 124 | |||||
| 125 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 126 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TcnMQQTB5F8hjyLoJ7VBHQ | ||||
| 127 | |||||
| 128 | |||||
| 129 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 130 | 1; |