Lines 300-308
__PACKAGE__->belongs_to(
Link Here
|
300 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-06-17 07:24:39 |
300 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-06-17 07:24:39 |
301 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZgGAW7ODBby3hGNJ41eeMA |
301 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZgGAW7ODBby3hGNJ41eeMA |
302 |
|
302 |
|
|
|
303 |
=head2 item |
304 |
|
305 |
Type: belongs_to |
306 |
|
307 |
Related object: L<Koha::Schema::Result::Item> |
308 |
|
309 |
=cut |
310 |
|
311 |
__PACKAGE__->belongs_to( |
312 |
"item", |
313 |
"Koha::Schema::Result::Item", |
314 |
{ itemnumber => "itemnumber" }, |
315 |
{ |
316 |
is_deferrable => 1, |
317 |
join_type => "LEFT", |
318 |
on_delete => "CASCADE", |
319 |
on_update => "CASCADE", |
320 |
}, |
321 |
); |
322 |
|
323 |
=head2 branch |
324 |
|
325 |
Type: belongs_to |
326 |
|
327 |
Related object: L<Koha::Schema::Result::Branch> |
328 |
|
329 |
=cut |
330 |
|
331 |
__PACKAGE__->belongs_to( |
332 |
"branch", |
333 |
"Koha::Schema::Result::Branch", |
334 |
{ branchcode => "branchcode" }, |
335 |
{ |
336 |
is_deferrable => 1, |
337 |
join_type => "LEFT", |
338 |
on_delete => "CASCADE", |
339 |
on_update => "CASCADE", |
340 |
}, |
341 |
); |
342 |
|
343 |
=head2 biblio |
344 |
|
345 |
Type: belongs_to |
346 |
|
347 |
Related object: L<Koha::Schema::Result::Biblio> |
348 |
|
349 |
=cut |
350 |
|
351 |
__PACKAGE__->belongs_to( |
352 |
"biblio", |
353 |
"Koha::Schema::Result::Biblio", |
354 |
{ biblionumber => "biblionumber" }, |
355 |
{ |
356 |
is_deferrable => 1, |
357 |
join_type => "LEFT", |
358 |
on_delete => "CASCADE", |
359 |
on_update => "CASCADE", |
360 |
}, |
361 |
); |
362 |
|
363 |
__PACKAGE__->add_columns( |
364 |
'+item_level_hold' => { is_boolean => 1 }, |
365 |
'+lowestPriority' => { is_boolean => 1 }, |
366 |
'+suspend' => { is_boolean => 1 } |
367 |
); |
368 |
|
369 |
=head2 koha_object_class |
370 |
|
371 |
Returns related Koha::Object class name |
372 |
|
373 |
=cut |
374 |
|
303 |
sub koha_object_class { |
375 |
sub koha_object_class { |
304 |
'Koha::Old::Hold'; |
376 |
'Koha::Old::Hold'; |
305 |
} |
377 |
} |
|
|
378 |
|
379 |
=head2 koha_objects_class |
380 |
|
381 |
Returns related Koha::Objects class name |
382 |
|
383 |
=cut |
384 |
|
306 |
sub koha_objects_class { |
385 |
sub koha_objects_class { |
307 |
'Koha::Old::Holds'; |
386 |
'Koha::Old::Holds'; |
308 |
} |
387 |
} |
309 |
- |
|
|