Filename | /home/vagrant/kohaclone/Koha/Schema/Result/OldIssue.pm |
Statements | Executed 14 statements in 626µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 29µs | 33µs | BEGIN@1.1649 | Class::C3::Componentised::
1 | 1 | 1 | 24µs | 37µs | BEGIN@13 | Koha::Schema::Result::OldIssue::
1 | 1 | 1 | 10µs | 19µs | BEGIN@14 | Koha::Schema::Result::OldIssue::
1 | 1 | 1 | 10µs | 84µs | BEGIN@16 | Koha::Schema::Result::OldIssue::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 84µs | 2 | 37µs | # spent 33µs (29+4) within Class::C3::Componentised::BEGIN@1.1649 which was called:
# once (29µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 33µs making 1 call to Class::C3::Componentised::BEGIN@1.1649
# spent 4µs making 1 call to utf8::import |
2 | package Koha::Schema::Result::OldIssue; | ||||
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::OldIssue | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 51µs | 2 | 49µs | # spent 37µs (24+12) within Koha::Schema::Result::OldIssue::BEGIN@13 which was called:
# once (24µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 37µs making 1 call to Koha::Schema::Result::OldIssue::BEGIN@13
# spent 12µs making 1 call to strict::import |
14 | 2 | 41µs | 2 | 28µs | # spent 19µs (10+9) within Koha::Schema::Result::OldIssue::BEGIN@14 which was called:
# once (10µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 19µs making 1 call to Koha::Schema::Result::OldIssue::BEGIN@14
# spent 9µs making 1 call to warnings::import |
15 | |||||
16 | 2 | 349µs | 2 | 159µs | # spent 84µs (10+74) within Koha::Schema::Result::OldIssue::BEGIN@16 which was called:
# once (10µs+74µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 84µs making 1 call to Koha::Schema::Result::OldIssue::BEGIN@16
# spent 74µs making 1 call to base::import |
17 | |||||
18 | =head1 TABLE: C<old_issues> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 20µs | 1 | 374µs | __PACKAGE__->table("old_issues"); # spent 374µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 issue_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_nullable: 0 | ||||
30 | |||||
31 | =head2 borrowernumber | ||||
32 | |||||
33 | data_type: 'integer' | ||||
34 | is_foreign_key: 1 | ||||
35 | is_nullable: 1 | ||||
36 | |||||
37 | =head2 itemnumber | ||||
38 | |||||
39 | data_type: 'integer' | ||||
40 | is_foreign_key: 1 | ||||
41 | is_nullable: 1 | ||||
42 | |||||
43 | =head2 date_due | ||||
44 | |||||
45 | data_type: 'datetime' | ||||
46 | datetime_undef_if_invalid: 1 | ||||
47 | is_nullable: 1 | ||||
48 | |||||
49 | =head2 branchcode | ||||
50 | |||||
51 | data_type: 'varchar' | ||||
52 | is_nullable: 1 | ||||
53 | size: 10 | ||||
54 | |||||
55 | =head2 returndate | ||||
56 | |||||
57 | data_type: 'datetime' | ||||
58 | datetime_undef_if_invalid: 1 | ||||
59 | is_nullable: 1 | ||||
60 | |||||
61 | =head2 lastreneweddate | ||||
62 | |||||
63 | data_type: 'datetime' | ||||
64 | datetime_undef_if_invalid: 1 | ||||
65 | is_nullable: 1 | ||||
66 | |||||
67 | =head2 return | ||||
68 | |||||
69 | data_type: 'varchar' | ||||
70 | is_nullable: 1 | ||||
71 | size: 4 | ||||
72 | |||||
73 | =head2 renewals | ||||
74 | |||||
75 | data_type: 'tinyint' | ||||
76 | is_nullable: 1 | ||||
77 | |||||
78 | =head2 auto_renew | ||||
79 | |||||
80 | data_type: 'tinyint' | ||||
81 | default_value: 0 | ||||
82 | is_nullable: 1 | ||||
83 | |||||
84 | =head2 timestamp | ||||
85 | |||||
86 | data_type: 'timestamp' | ||||
87 | datetime_undef_if_invalid: 1 | ||||
88 | default_value: current_timestamp | ||||
89 | is_nullable: 0 | ||||
90 | |||||
91 | =head2 issuedate | ||||
92 | |||||
93 | data_type: 'datetime' | ||||
94 | datetime_undef_if_invalid: 1 | ||||
95 | is_nullable: 1 | ||||
96 | |||||
97 | =head2 onsite_checkout | ||||
98 | |||||
99 | data_type: 'integer' | ||||
100 | default_value: 0 | ||||
101 | is_nullable: 0 | ||||
102 | |||||
103 | =cut | ||||
104 | |||||
105 | 1 | 35µs | 1 | 4.50ms | __PACKAGE__->add_columns( # spent 4.50ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
106 | "issue_id", | ||||
107 | { data_type => "integer", is_nullable => 0 }, | ||||
108 | "borrowernumber", | ||||
109 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
110 | "itemnumber", | ||||
111 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
112 | "date_due", | ||||
113 | { | ||||
114 | data_type => "datetime", | ||||
115 | datetime_undef_if_invalid => 1, | ||||
116 | is_nullable => 1, | ||||
117 | }, | ||||
118 | "branchcode", | ||||
119 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
120 | "returndate", | ||||
121 | { | ||||
122 | data_type => "datetime", | ||||
123 | datetime_undef_if_invalid => 1, | ||||
124 | is_nullable => 1, | ||||
125 | }, | ||||
126 | "lastreneweddate", | ||||
127 | { | ||||
128 | data_type => "datetime", | ||||
129 | datetime_undef_if_invalid => 1, | ||||
130 | is_nullable => 1, | ||||
131 | }, | ||||
132 | "return", | ||||
133 | { data_type => "varchar", is_nullable => 1, size => 4 }, | ||||
134 | "renewals", | ||||
135 | { data_type => "tinyint", is_nullable => 1 }, | ||||
136 | "auto_renew", | ||||
137 | { data_type => "tinyint", default_value => 0, is_nullable => 1 }, | ||||
138 | "timestamp", | ||||
139 | { | ||||
140 | data_type => "timestamp", | ||||
141 | datetime_undef_if_invalid => 1, | ||||
142 | default_value => \"current_timestamp", | ||||
143 | is_nullable => 0, | ||||
144 | }, | ||||
145 | "issuedate", | ||||
146 | { | ||||
147 | data_type => "datetime", | ||||
148 | datetime_undef_if_invalid => 1, | ||||
149 | is_nullable => 1, | ||||
150 | }, | ||||
151 | "onsite_checkout", | ||||
152 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
153 | ); | ||||
154 | |||||
155 | =head1 PRIMARY KEY | ||||
156 | |||||
157 | =over 4 | ||||
158 | |||||
159 | =item * L</issue_id> | ||||
160 | |||||
161 | =back | ||||
162 | |||||
163 | =cut | ||||
164 | |||||
165 | 1 | 17µs | 1 | 84µs | __PACKAGE__->set_primary_key("issue_id"); # spent 84µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
166 | |||||
167 | =head1 RELATIONS | ||||
168 | |||||
169 | =head2 borrowernumber | ||||
170 | |||||
171 | Type: belongs_to | ||||
172 | |||||
173 | Related object: L<Koha::Schema::Result::Borrower> | ||||
174 | |||||
175 | =cut | ||||
176 | |||||
177 | 1 | 10µs | 1 | 381µs | __PACKAGE__->belongs_to( # spent 381µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
178 | "borrowernumber", | ||||
179 | "Koha::Schema::Result::Borrower", | ||||
180 | { borrowernumber => "borrowernumber" }, | ||||
181 | { | ||||
182 | is_deferrable => 1, | ||||
183 | join_type => "LEFT", | ||||
184 | on_delete => "SET NULL", | ||||
185 | on_update => "SET NULL", | ||||
186 | }, | ||||
187 | ); | ||||
188 | |||||
189 | =head2 itemnumber | ||||
190 | |||||
191 | Type: belongs_to | ||||
192 | |||||
193 | Related object: L<Koha::Schema::Result::Item> | ||||
194 | |||||
195 | =cut | ||||
196 | |||||
197 | 1 | 4µs | 1 | 197µs | __PACKAGE__->belongs_to( # spent 197µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
198 | "itemnumber", | ||||
199 | "Koha::Schema::Result::Item", | ||||
200 | { itemnumber => "itemnumber" }, | ||||
201 | { | ||||
202 | is_deferrable => 1, | ||||
203 | join_type => "LEFT", | ||||
204 | on_delete => "SET NULL", | ||||
205 | on_update => "SET NULL", | ||||
206 | }, | ||||
207 | ); | ||||
208 | |||||
209 | |||||
210 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 13:04:51 | ||||
211 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9GdzytyInRcFZns/q0qb3Q | ||||
212 | |||||
213 | |||||
214 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
215 | 1 | 14µs | 1; |