View | Details | Raw Unified | Return to bug 20936
Collapse All | Expand All

(-)a/Koha/Schema/Result/Biblio.pm (+20 lines)
Lines 428-431 __PACKAGE__->add_columns( Link Here
428
    "+serial" => { is_boolean => 1 }
428
    "+serial" => { is_boolean => 1 }
429
);
429
);
430
430
431
=head2 koha_objects_class
432
433
Returns related Koha::Objects class name
434
435
=cut
436
437
sub koha_objects_class {
438
    'Koha::Biblios';
439
}
440
441
=head2 koha_object_class
442
443
Returns related Koha::Object class name
444
445
=cut
446
447
sub koha_object_class {
448
    'Koha::Biblio';
449
}
450
431
1;
451
1;
(-)a/Koha/Schema/Result/Item.pm (+27 lines)
Lines 759-764 __PACKAGE__->belongs_to( Link Here
759
);
759
);
760
760
761
use C4::Context;
761
use C4::Context;
762
763
=head2 effective_itemtype
764
765
Returns item's effective itemtype
766
767
=cut
768
762
sub effective_itemtype {
769
sub effective_itemtype {
763
    my ( $self ) = @_;
770
    my ( $self ) = @_;
764
771
Lines 772-775 sub effective_itemtype { Link Here
772
    }
779
    }
773
}
780
}
774
781
782
=head2 koha_objects_class
783
784
Returns related Koha::Objects class name
785
786
=cut
787
788
sub koha_objects_class {
789
    'Koha::Items';
790
}
791
792
=head2 koha_object_class
793
794
Returns related Koha::Object class name
795
796
=cut
797
798
sub koha_object_class {
799
    'Koha::Item';
800
}
801
775
1;
802
1;
(-)a/Koha/Schema/Result/OldReserve.pm (-1 / +79 lines)
Lines 301-309 __PACKAGE__->belongs_to( Link Here
301
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15
301
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15
302
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug
302
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug
303
303
304
=head2 item
305
306
Type: belongs_to
307
308
Related object: L<Koha::Schema::Result::Item>
309
310
=cut
311
312
__PACKAGE__->belongs_to(
313
  "item",
314
  "Koha::Schema::Result::Item",
315
  { itemnumber => "itemnumber" },
316
  {
317
    is_deferrable => 1,
318
    join_type     => "LEFT",
319
    on_delete     => "CASCADE",
320
    on_update     => "CASCADE",
321
  },
322
);
323
324
=head2 branch
325
326
Type: belongs_to
327
328
Related object: L<Koha::Schema::Result::Branch>
329
330
=cut
331
332
__PACKAGE__->belongs_to(
333
  "branch",
334
  "Koha::Schema::Result::Branch",
335
  { branchcode => "branchcode" },
336
  {
337
    is_deferrable => 1,
338
    join_type     => "LEFT",
339
    on_delete     => "CASCADE",
340
    on_update     => "CASCADE",
341
  },
342
);
343
344
=head2 biblio
345
346
Type: belongs_to
347
348
Related object: L<Koha::Schema::Result::Biblio>
349
350
=cut
351
352
__PACKAGE__->belongs_to(
353
  "biblio",
354
  "Koha::Schema::Result::Biblio",
355
  { biblionumber => "biblionumber" },
356
  {
357
    is_deferrable => 1,
358
    join_type     => "LEFT",
359
    on_delete     => "CASCADE",
360
    on_update     => "CASCADE",
361
  },
362
);
363
364
__PACKAGE__->add_columns(
365
    '+item_level_hold' => { is_boolean => 1 },
366
    '+lowestPriority'  => { is_boolean => 1 },
367
    '+suspend'         => { is_boolean => 1 }
368
);
369
370
=head2 koha_object_class
371
372
Returns related Koha::Object class name
373
374
=cut
375
304
sub koha_object_class {
376
sub koha_object_class {
305
    'Koha::Old::Hold';
377
    'Koha::Old::Hold';
306
}
378
}
379
380
=head2 koha_objects_class
381
382
Returns related Koha::Objects class name
383
384
=cut
385
307
sub koha_objects_class {
386
sub koha_objects_class {
308
    'Koha::Old::Holds';
387
    'Koha::Old::Holds';
309
}
388
}
310
- 

Return to bug 20936