Filename | /home/vagrant/kohaclone/Koha/Schema/Result/OldIssue.pm |
Statements | Executed 0 statements in 0s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 49µs | 54µs | BEGIN@1.2729 | Class::C3::Componentised::
1 | 1 | 1 | 11µs | 24µs | BEGIN@13 | Koha::Schema::Result::OldIssue::
1 | 1 | 1 | 10µs | 104µs | BEGIN@16 | Koha::Schema::Result::OldIssue::
1 | 1 | 1 | 9µs | 21µs | BEGIN@14 | Koha::Schema::Result::OldIssue::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 59µs | # spent 54µs (49+5) within Class::C3::Componentised::BEGIN@1.2729 which was called:
# once (49µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 54µs making 1 call to Class::C3::Componentised::BEGIN@1.2729
# spent 5µ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 | 37µs | # spent 24µs (11+13) within Koha::Schema::Result::OldIssue::BEGIN@13 which was called:
# once (11µs+13µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 24µs making 1 call to Koha::Schema::Result::OldIssue::BEGIN@13
# spent 13µs making 1 call to strict::import | ||
14 | 2 | 32µs | # spent 21µs (9+11) within Koha::Schema::Result::OldIssue::BEGIN@14 which was called:
# once (9µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 21µs making 1 call to Koha::Schema::Result::OldIssue::BEGIN@14
# spent 11µs making 1 call to warnings::import | ||
15 | |||||
16 | 2 | 198µs | # spent 104µs (10+94) within Koha::Schema::Result::OldIssue::BEGIN@16 which was called:
# once (10µs+94µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 104µs making 1 call to Koha::Schema::Result::OldIssue::BEGIN@16
# spent 94µs making 1 call to base::import | ||
17 | |||||
18 | =head1 TABLE: C<old_issues> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 360µs | __PACKAGE__->table("old_issues"); # spent 360µ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 | 1.23ms | __PACKAGE__->add_columns( # spent 1.23ms 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 | 95µs | __PACKAGE__->set_primary_key("issue_id"); # spent 95µ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 | 390µs | __PACKAGE__->belongs_to( # spent 390µ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 | 212µs | __PACKAGE__->belongs_to( # spent 212µ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; |