Filename | /home/vagrant/kohaclone/Koha/Schema/Result/BorrowerMessagePreference.pm |
Statements | Executed 0 statements in 0s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 27µs | 31µs | BEGIN@1.2046 | Class::C3::Componentised::
1 | 1 | 1 | 16µs | 27µs | BEGIN@14 | Koha::Schema::Result::BorrowerMessagePreference::
1 | 1 | 1 | 11µs | 102µs | BEGIN@16 | Koha::Schema::Result::BorrowerMessagePreference::
1 | 1 | 1 | 11µs | 22µs | BEGIN@13 | Koha::Schema::Result::BorrowerMessagePreference::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 35µs | # spent 31µs (27+4) within Class::C3::Componentised::BEGIN@1.2046 which was called:
# once (27µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 31µs making 1 call to Class::C3::Componentised::BEGIN@1.2046
# spent 4µ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 | 34µs | # spent 22µs (11+12) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13 which was called:
# once (11µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@13
# spent 12µs making 1 call to strict::import | ||
14 | 2 | 39µs | # spent 27µs (16+12) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14 which was called:
# once (16µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 27µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@14
# spent 12µs making 1 call to warnings::import | ||
15 | |||||
16 | 2 | 192µs | # spent 102µs (11+90) within Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16 which was called:
# once (11µs+90µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 102µs making 1 call to Koha::Schema::Result::BorrowerMessagePreference::BEGIN@16
# spent 90µs making 1 call to base::import | ||
17 | |||||
18 | =head1 TABLE: C<borrower_message_preferences> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 369µs | __PACKAGE__->table("borrower_message_preferences"); # spent 369µ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 | 2.30ms | __PACKAGE__->add_columns( # spent 2.30ms 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 | 80µs | __PACKAGE__->set_primary_key("borrower_message_preference_id"); # spent 80µ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 | 357µs | __PACKAGE__->has_many( # spent 357µ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 | 324µs | __PACKAGE__->belongs_to( # spent 324µ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 | 201µs | __PACKAGE__->belongs_to( # spent 201µ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 | 158µs | __PACKAGE__->belongs_to( # spent 158µ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 | 134µs | __PACKAGE__->many_to_many( # spent 134µ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; |