Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerMessagePreference.pm |
Statements | Executed 17 statements in 618µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 25µs | 28µs | BEGIN@1.1861 | Class::C3::Componentised::
1 | 1 | 1 | 10µs | 89µs | BEGIN@16 | Koha::Schema::Result::BorrowerMessagePreference::
1 | 1 | 1 | 9µs | 17µs | BEGIN@13 | Koha::Schema::Result::BorrowerMessagePreference::
1 | 1 | 1 | 9µs | 16µs | BEGIN@14 | Koha::Schema::Result::BorrowerMessagePreference::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 71µs | 2 | 31µs | # spent 28µs (25+3) within Class::C3::Componentised::BEGIN@1.1861 which was called:
# once (25µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 28µs making 1 call to Class::C3::Componentised::BEGIN@1.1861
# spent 3µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::BorrowerMessagePreference; | ||||
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::BorrowerMessagePreference | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 37µs | 2 | 26µs | # spent 17µs (9+9) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13 which was called:
# once (9µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 17µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13
# spent 9µs making 1 call to strict::import |
14 | 2 | 38µs | 2 | 23µs | # spent 16µs (9+7) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14 which was called:
# once (9µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14
# spent 7µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 355µs | 2 | 168µs | # spent 89µs (10+79) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16 which was called:
# once (10µs+79µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 89µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16
# spent 79µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<borrower_message_preferences> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 22µs | 1 | 316µs | __PACKAGE__->table("borrower_message_preferences"); # spent 316µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 borrower_message_preference_id | ||||
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 categorycode | ||||
39 | |||||
40 | data_type: 'varchar' | ||||
41 | is_foreign_key: 1 | ||||
42 | is_nullable: 1 | ||||
43 | size: 10 | ||||
44 | |||||
45 | =head2 message_attribute_id | ||||
46 | |||||
47 | data_type: 'integer' | ||||
48 | default_value: 0 | ||||
49 | is_foreign_key: 1 | ||||
50 | is_nullable: 1 | ||||
51 | |||||
52 | =head2 days_in_advance | ||||
53 | |||||
54 | data_type: 'integer' | ||||
55 | default_value: 0 | ||||
56 | is_nullable: 1 | ||||
57 | |||||
58 | =head2 wants_digest | ||||
59 | |||||
60 | data_type: 'tinyint' | ||||
61 | default_value: 0 | ||||
62 | is_nullable: 0 | ||||
63 | |||||
64 | =cut | ||||
65 | |||||
66 | 1 | 24µs | 1 | 2.14ms | __PACKAGE__->add_columns( # spent 2.14ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
67 | "borrower_message_preference_id", | ||||
68 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
69 | "borrowernumber", | ||||
70 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
71 | "categorycode", | ||||
72 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, | ||||
73 | "message_attribute_id", | ||||
74 | { | ||||
75 | data_type => "integer", | ||||
76 | default_value => 0, | ||||
77 | is_foreign_key => 1, | ||||
78 | is_nullable => 1, | ||||
79 | }, | ||||
80 | "days_in_advance", | ||||
81 | { data_type => "integer", default_value => 0, is_nullable => 1 }, | ||||
82 | "wants_digest", | ||||
83 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||||
84 | ); | ||||
85 | |||||
86 | =head1 PRIMARY KEY | ||||
87 | |||||
88 | =over 4 | ||||
89 | |||||
90 | =item * L</borrower_message_preference_id> | ||||
91 | |||||
92 | =back | ||||
93 | |||||
94 | =cut | ||||
95 | |||||
96 | 1 | 17µs | 1 | 75µs | __PACKAGE__->set_primary_key("borrower_message_preference_id"); # spent 75µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
97 | |||||
98 | =head1 RELATIONS | ||||
99 | |||||
100 | =head2 borrower_message_transport_preferences | ||||
101 | |||||
102 | Type: has_many | ||||
103 | |||||
104 | Related object: L<Koha::Schema::Result::BorrowerMessageTransportPreference> | ||||
105 | |||||
106 | =cut | ||||
107 | |||||
108 | 1 | 8µs | 1 | 554µs | __PACKAGE__->has_many( # spent 554µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
109 | "borrower_message_transport_preferences", | ||||
110 | "Koha::Schema::Result::BorrowerMessageTransportPreference", | ||||
111 | { | ||||
112 | "foreign.borrower_message_preference_id" => "self.borrower_message_preference_id", | ||||
113 | }, | ||||
114 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
115 | ); | ||||
116 | |||||
117 | =head2 borrowernumber | ||||
118 | |||||
119 | Type: belongs_to | ||||
120 | |||||
121 | Related object: L<Koha::Schema::Result::Borrower> | ||||
122 | |||||
123 | =cut | ||||
124 | |||||
125 | 1 | 11µs | 1 | 360µs | __PACKAGE__->belongs_to( # spent 360µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
126 | "borrowernumber", | ||||
127 | "Koha::Schema::Result::Borrower", | ||||
128 | { borrowernumber => "borrowernumber" }, | ||||
129 | { | ||||
130 | is_deferrable => 1, | ||||
131 | join_type => "LEFT", | ||||
132 | on_delete => "CASCADE", | ||||
133 | on_update => "CASCADE", | ||||
134 | }, | ||||
135 | ); | ||||
136 | |||||
137 | =head2 categorycode | ||||
138 | |||||
139 | Type: belongs_to | ||||
140 | |||||
141 | Related object: L<Koha::Schema::Result::Category> | ||||
142 | |||||
143 | =cut | ||||
144 | |||||
145 | 1 | 5µs | 1 | 214µs | __PACKAGE__->belongs_to( # spent 214µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
146 | "categorycode", | ||||
147 | "Koha::Schema::Result::Category", | ||||
148 | { categorycode => "categorycode" }, | ||||
149 | { | ||||
150 | is_deferrable => 1, | ||||
151 | join_type => "LEFT", | ||||
152 | on_delete => "CASCADE", | ||||
153 | on_update => "CASCADE", | ||||
154 | }, | ||||
155 | ); | ||||
156 | |||||
157 | =head2 message_attribute | ||||
158 | |||||
159 | Type: belongs_to | ||||
160 | |||||
161 | Related object: L<Koha::Schema::Result::MessageAttribute> | ||||
162 | |||||
163 | =cut | ||||
164 | |||||
165 | 1 | 5µs | 1 | 192µs | __PACKAGE__->belongs_to( # spent 192µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
166 | "message_attribute", | ||||
167 | "Koha::Schema::Result::MessageAttribute", | ||||
168 | { message_attribute_id => "message_attribute_id" }, | ||||
169 | { | ||||
170 | is_deferrable => 1, | ||||
171 | join_type => "LEFT", | ||||
172 | on_delete => "CASCADE", | ||||
173 | on_update => "CASCADE", | ||||
174 | }, | ||||
175 | ); | ||||
176 | |||||
177 | =head2 message_transport_types | ||||
178 | |||||
179 | Type: many_to_many | ||||
180 | |||||
181 | Composing rels: L</borrower_message_transport_preferences> -> message_transport_type | ||||
182 | |||||
183 | =cut | ||||
184 | |||||
185 | 1 | 8µs | 1 | 148µs | __PACKAGE__->many_to_many( # spent 148µs making 1 call to DBIx::Class::Relationship::ManyToMany::many_to_many |
186 | "message_transport_types", | ||||
187 | "borrower_message_transport_preferences", | ||||
188 | "message_transport_type", | ||||
189 | ); | ||||
190 | |||||
191 | |||||
192 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
193 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hd5sPnxGi5332WmzqCus8A | ||||
194 | |||||
195 | |||||
196 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
197 | 1 | 16µs | 1; |