Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ItemsSearchField.pm |
Statements | Executed 13 statements in 434µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 24µs | 27µs | BEGIN@1.2095 | Class::C3::Componentised::
1 | 1 | 1 | 10µs | 70µs | BEGIN@16 | Koha::Schema::Result::ItemsSearchField::
1 | 1 | 1 | 9µs | 17µs | BEGIN@13 | Koha::Schema::Result::ItemsSearchField::
1 | 1 | 1 | 8µs | 13µs | BEGIN@14 | Koha::Schema::Result::ItemsSearchField::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 68µs | 2 | 30µs | # spent 27µs (24+3) within Class::C3::Componentised::BEGIN@1.2095 which was called:
# once (24µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 27µs making 1 call to Class::C3::Componentised::BEGIN@1.2095
# 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 | 37µs | 2 | 25µs | # spent 17µs (9+8) within Koha::Schema::Result::ItemsSearchField::BEGIN@13 which was called:
# once (9µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 17µs making 1 call to Koha::Schema::Result::ItemsSearchField::BEGIN@13
# spent 8µs making 1 call to strict::import |
14 | 2 | 35µs | 2 | 19µs | # spent 13µs (8+6) within Koha::Schema::Result::ItemsSearchField::BEGIN@14 which was called:
# once (8µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 13µs making 1 call to Koha::Schema::Result::ItemsSearchField::BEGIN@14
# spent 6µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 218µs | 2 | 129µs | # spent 70µs (10+59) within Koha::Schema::Result::ItemsSearchField::BEGIN@16 which was called:
# once (10µs+59µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 70µs making 1 call to Koha::Schema::Result::ItemsSearchField::BEGIN@16
# spent 60µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<items_search_fields> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 19µs | 1 | 321µs | __PACKAGE__->table("items_search_fields"); # spent 321µ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 | 21µs | 1 | 2.03ms | __PACKAGE__->add_columns( # spent 2.03ms 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 | 18µs | 1 | 77µs | __PACKAGE__->set_primary_key("name"); # spent 77µ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 | 10µs | 1 | 891µs | __PACKAGE__->belongs_to( # spent 891µ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 | 8µs | 1; |