| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/TagsIndex.pm | 
| Statements | Executed 14 statements in 508µs | 
| Calls | P | F | Exclusive Time | Inclusive Time | Subroutine | 
|---|---|---|---|---|---|
| 1 | 1 | 1 | 29µs | 34µs | Class::C3::Componentised::BEGIN@1.1075 | 
| 1 | 1 | 1 | 10µs | 85µs | Koha::Schema::Result::TagsIndex::BEGIN@16 | 
| 1 | 1 | 1 | 10µs | 22µs | Koha::Schema::Result::TagsIndex::BEGIN@13 | 
| 1 | 1 | 1 | 9µs | 19µs | Koha::Schema::Result::TagsIndex::BEGIN@14 | 
| Line | State ments | Time on line | Calls | Time in subs | Code | 
|---|---|---|---|---|---|
| 1 | 2 | 73µs | 2 | 38µs | # spent 34µs (29+4) within Class::C3::Componentised::BEGIN@1.1075 which was called:
#    once (29µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent    34µs making 1 call to Class::C3::Componentised::BEGIN@1.1075
# spent     4µs making 1 call to utf8::import | 
| 2 | package Koha::Schema::Result::TagsIndex; | ||||
| 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::TagsIndex | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 40µs | 2 | 33µs | # spent 22µs (10+12) within Koha::Schema::Result::TagsIndex::BEGIN@13 which was called:
#    once (10µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent    22µs making 1 call to Koha::Schema::Result::TagsIndex::BEGIN@13
# spent    12µs making 1 call to strict::import | 
| 14 | 2 | 42µs | 2 | 28µs | # spent 19µs (9+9) within Koha::Schema::Result::TagsIndex::BEGIN@14 which was called:
#    once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent    19µs making 1 call to Koha::Schema::Result::TagsIndex::BEGIN@14
# spent     9µs making 1 call to warnings::import | 
| 15 | |||||
| 16 | 2 | 223µs | 2 | 160µs | # spent 85µs (10+75) within Koha::Schema::Result::TagsIndex::BEGIN@16 which was called:
#    once (10µs+75µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent    85µs making 1 call to Koha::Schema::Result::TagsIndex::BEGIN@16
# spent    75µs making 1 call to base::import | 
| 17 | |||||
| 18 | =head1 TABLE: C<tags_index> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 23µs | 1 | 331µs | __PACKAGE__->table("tags_index"); # spent   331µ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_foreign_key: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | size: 255 | ||||
| 32 | |||||
| 33 | =head2 biblionumber | ||||
| 34 | |||||
| 35 | data_type: 'integer' | ||||
| 36 | is_foreign_key: 1 | ||||
| 37 | is_nullable: 0 | ||||
| 38 | |||||
| 39 | =head2 weight | ||||
| 40 | |||||
| 41 | data_type: 'integer' | ||||
| 42 | default_value: 1 | ||||
| 43 | is_nullable: 0 | ||||
| 44 | |||||
| 45 | =cut | ||||
| 46 | |||||
| 47 | 1 | 21µs | 1 | 949µs | __PACKAGE__->add_columns( # spent   949µs making 1 call to DBIx::Class::ResultSourceProxy::add_columns | 
| 48 | "term", | ||||
| 49 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 255 }, | ||||
| 50 | "biblionumber", | ||||
| 51 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 52 | "weight", | ||||
| 53 | { data_type => "integer", default_value => 1, is_nullable => 0 }, | ||||
| 54 | ); | ||||
| 55 | |||||
| 56 | =head1 PRIMARY KEY | ||||
| 57 | |||||
| 58 | =over 4 | ||||
| 59 | |||||
| 60 | =item * L</term> | ||||
| 61 | |||||
| 62 | =item * L</biblionumber> | ||||
| 63 | |||||
| 64 | =back | ||||
| 65 | |||||
| 66 | =cut | ||||
| 67 | |||||
| 68 | 1 | 43µs | 1 | 146µs | __PACKAGE__->set_primary_key("term", "biblionumber"); # spent   146µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | 
| 69 | |||||
| 70 | =head1 RELATIONS | ||||
| 71 | |||||
| 72 | =head2 biblionumber | ||||
| 73 | |||||
| 74 | Type: belongs_to | ||||
| 75 | |||||
| 76 | Related object: L<Koha::Schema::Result::Biblio> | ||||
| 77 | |||||
| 78 | =cut | ||||
| 79 | |||||
| 80 | 1 | 19µs | 1 | 854µs | __PACKAGE__->belongs_to( # spent   854µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | 
| 81 | "biblionumber", | ||||
| 82 | "Koha::Schema::Result::Biblio", | ||||
| 83 | { biblionumber => "biblionumber" }, | ||||
| 84 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 85 | ); | ||||
| 86 | |||||
| 87 | =head2 term | ||||
| 88 | |||||
| 89 | Type: belongs_to | ||||
| 90 | |||||
| 91 | Related object: L<Koha::Schema::Result::TagsApproval> | ||||
| 92 | |||||
| 93 | =cut | ||||
| 94 | |||||
| 95 | 1 | 9µs | 1 | 1.18ms | __PACKAGE__->belongs_to( # spent  1.18ms making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | 
| 96 | "term", | ||||
| 97 | "Koha::Schema::Result::TagsApproval", | ||||
| 98 | { term => "term" }, | ||||
| 99 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 100 | ); | ||||
| 101 | |||||
| 102 | |||||
| 103 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 104 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LCvvyig+memFWmWUdCStXQ | ||||
| 105 | |||||
| 106 | |||||
| 107 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 108 | 1 | 15µs | 1; |