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