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 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
- 

Return to bug 20936