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

(-)a/Koha/Schema/Result/Biblio.pm (-26 / +11 lines)
Lines 300-331 __PACKAGE__->has_many( Link Here
300
  { cascade_copy => 0, cascade_delete => 0 },
300
  { cascade_copy => 0, cascade_delete => 0 },
301
);
301
);
302
302
303
=head2 items
303
=head2 holds
304
304
305
Type: has_many
305
Type: has_many
306
306
307
Related object: L<Koha::Schema::Result::Item>
307
Related object: L<Koha::Schema::Result::Hold>
308
308
309
=cut
309
=cut
310
310
311
__PACKAGE__->has_many(
311
__PACKAGE__->has_many(
312
  "items",
312
  "holds",
313
  "Koha::Schema::Result::Item",
313
  "Koha::Schema::Result::Hold",
314
  { "foreign.biblionumber" => "self.biblionumber" },
314
  { "foreign.biblio_id" => "self.biblionumber" },
315
  { cascade_copy => 0, cascade_delete => 0 },
315
  { cascade_copy => 0, cascade_delete => 0 },
316
);
316
);
317
317
318
=head2 old_reserves
318
=head2 items
319
319
320
Type: has_many
320
Type: has_many
321
321
322
Related object: L<Koha::Schema::Result::OldReserve>
322
Related object: L<Koha::Schema::Result::Item>
323
323
324
=cut
324
=cut
325
325
326
__PACKAGE__->has_many(
326
__PACKAGE__->has_many(
327
  "old_reserves",
327
  "items",
328
  "Koha::Schema::Result::OldReserve",
328
  "Koha::Schema::Result::Item",
329
  { "foreign.biblionumber" => "self.biblionumber" },
329
  { "foreign.biblionumber" => "self.biblionumber" },
330
  { cascade_copy => 0, cascade_delete => 0 },
330
  { cascade_copy => 0, cascade_delete => 0 },
331
);
331
);
Lines 345-365 __PACKAGE__->has_many( Link Here
345
  { cascade_copy => 0, cascade_delete => 0 },
345
  { cascade_copy => 0, cascade_delete => 0 },
346
);
346
);
347
347
348
=head2 reserves
349
350
Type: has_many
351
352
Related object: L<Koha::Schema::Result::Reserve>
353
354
=cut
355
356
__PACKAGE__->has_many(
357
  "reserves",
358
  "Koha::Schema::Result::Reserve",
359
  { "foreign.biblionumber" => "self.biblionumber" },
360
  { cascade_copy => 0, cascade_delete => 0 },
361
);
362
363
=head2 reviews
348
=head2 reviews
364
349
365
Type: has_many
350
Type: has_many
Lines 481-488 __PACKAGE__->has_many( Link Here
481
);
466
);
482
467
483
468
484
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
469
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-01-27 19:57:36
485
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nmmsZusHYNAMimE9sImSNg
470
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4FwDh5Qc6HTepwRlo7ivhQ
486
471
487
__PACKAGE__->has_many(
472
__PACKAGE__->has_many(
488
  "biblioitem",
473
  "biblioitem",
(-)a/Koha/Schema/Result/Branch.pm (-17 / +17 lines)
Lines 631-636 __PACKAGE__->has_many( Link Here
631
  { cascade_copy => 0, cascade_delete => 0 },
631
  { cascade_copy => 0, cascade_delete => 0 },
632
);
632
);
633
633
634
=head2 holds
635
636
Type: has_many
637
638
Related object: L<Koha::Schema::Result::Hold>
639
640
=cut
641
642
__PACKAGE__->has_many(
643
  "holds",
644
  "Koha::Schema::Result::Hold",
645
  { "foreign.pickup_library_id" => "self.branchcode" },
646
  { cascade_copy => 0, cascade_delete => 0 },
647
);
648
634
=head2 illrequests
649
=head2 illrequests
635
650
636
Type: has_many
651
Type: has_many
Lines 796-816 __PACKAGE__->has_many( Link Here
796
  { cascade_copy => 0, cascade_delete => 0 },
811
  { cascade_copy => 0, cascade_delete => 0 },
797
);
812
);
798
813
799
=head2 reserves
800
801
Type: has_many
802
803
Related object: L<Koha::Schema::Result::Reserve>
804
805
=cut
806
807
__PACKAGE__->has_many(
808
  "reserves",
809
  "Koha::Schema::Result::Reserve",
810
  { "foreign.branchcode" => "self.branchcode" },
811
  { cascade_copy => 0, cascade_delete => 0 },
812
);
813
814
=head2 special_holidays
814
=head2 special_holidays
815
815
816
Type: has_many
816
Type: has_many
Lines 887-894 __PACKAGE__->has_many( Link Here
887
);
887
);
888
888
889
889
890
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
890
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-01-27 19:57:36
891
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uu8m3hyDhM50oTSeNTJbdg
891
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:scFksQ0UIScBex3j6VU8bw
892
892
893
__PACKAGE__->add_columns(
893
__PACKAGE__->add_columns(
894
    '+pickup_location' => { is_boolean => 1 }
894
    '+pickup_location' => { is_boolean => 1 }
(-)a/Koha/Schema/Result/Desk.pm (-6 / +6 lines)
Lines 89-112 __PACKAGE__->belongs_to( Link Here
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90
);
90
);
91
91
92
=head2 reserves
92
=head2 holds
93
93
94
Type: has_many
94
Type: has_many
95
95
96
Related object: L<Koha::Schema::Result::Reserve>
96
Related object: L<Koha::Schema::Result::Hold>
97
97
98
=cut
98
=cut
99
99
100
__PACKAGE__->has_many(
100
__PACKAGE__->has_many(
101
  "reserves",
101
  "holds",
102
  "Koha::Schema::Result::Reserve",
102
  "Koha::Schema::Result::Hold",
103
  { "foreign.desk_id" => "self.desk_id" },
103
  { "foreign.desk_id" => "self.desk_id" },
104
  { cascade_copy => 0, cascade_delete => 0 },
104
  { cascade_copy => 0, cascade_delete => 0 },
105
);
105
);
106
106
107
107
108
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
108
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-01-27 19:57:36
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7qeCP25arGQpM4xxnTmWbw
109
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PkVcz/kbAu/zfbtztuJX9Q
110
110
111
111
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
112
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Item.pm (-32 / +17 lines)
Lines 694-699 __PACKAGE__->belongs_to( Link Here
694
  },
694
  },
695
);
695
);
696
696
697
=head2 holds
698
699
Type: has_many
700
701
Related object: L<Koha::Schema::Result::Hold>
702
703
=cut
704
705
__PACKAGE__->has_many(
706
  "holds",
707
  "Koha::Schema::Result::Hold",
708
  { "foreign.item_id" => "self.itemnumber" },
709
  { cascade_copy => 0, cascade_delete => 0 },
710
);
711
697
=head2 homebranch
712
=head2 homebranch
698
713
699
Type: belongs_to
714
Type: belongs_to
Lines 759-794 __PACKAGE__->has_many( Link Here
759
  { cascade_copy => 0, cascade_delete => 0 },
774
  { cascade_copy => 0, cascade_delete => 0 },
760
);
775
);
761
776
762
=head2 old_reserves
763
764
Type: has_many
765
766
Related object: L<Koha::Schema::Result::OldReserve>
767
768
=cut
769
770
__PACKAGE__->has_many(
771
  "old_reserves",
772
  "Koha::Schema::Result::OldReserve",
773
  { "foreign.itemnumber" => "self.itemnumber" },
774
  { cascade_copy => 0, cascade_delete => 0 },
775
);
776
777
=head2 reserves
778
779
Type: has_many
780
781
Related object: L<Koha::Schema::Result::Reserve>
782
783
=cut
784
785
__PACKAGE__->has_many(
786
  "reserves",
787
  "Koha::Schema::Result::Reserve",
788
  { "foreign.itemnumber" => "self.itemnumber" },
789
  { cascade_copy => 0, cascade_delete => 0 },
790
);
791
792
=head2 return_claims
777
=head2 return_claims
793
778
794
Type: has_many
779
Type: has_many
Lines 850-857 __PACKAGE__->has_many( Link Here
850
);
835
);
851
836
852
837
853
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
838
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-01-27 19:57:36
854
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U5Tm2JfUnfhACRDJ4SpFgQ
839
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WuEFNsbl8eRji9xY1b2MdA
855
840
856
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
841
__PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" );
857
842
(-)a/Koha/Schema/Result/Itemtype.pm (-30 / +14 lines)
Lines 252-298 __PACKAGE__->has_many( Link Here
252
  { cascade_copy => 0, cascade_delete => 0 },
252
  { cascade_copy => 0, cascade_delete => 0 },
253
);
253
);
254
254
255
=head2 itemtypes
255
=head2 holds
256
256
257
Type: has_many
257
Type: has_many
258
258
259
Related object: L<Koha::Schema::Result::Itemtype>
259
Related object: L<Koha::Schema::Result::Hold>
260
260
261
=cut
261
=cut
262
262
263
__PACKAGE__->has_many(
263
__PACKAGE__->has_many(
264
  "itemtypes",
264
  "holds",
265
  "Koha::Schema::Result::Itemtype",
265
  "Koha::Schema::Result::Hold",
266
  { "foreign.parent_type" => "self.itemtype" },
266
  { "foreign.item_type" => "self.itemtype" },
267
  { cascade_copy => 0, cascade_delete => 0 },
267
  { cascade_copy => 0, cascade_delete => 0 },
268
);
268
);
269
269
270
=head2 itemtypes_branches
270
=head2 itemtypes
271
271
272
Type: has_many
272
Type: has_many
273
273
274
Related object: L<Koha::Schema::Result::ItemtypesBranch>
274
Related object: L<Koha::Schema::Result::Itemtype>
275
275
276
=cut
276
=cut
277
277
278
__PACKAGE__->has_many(
278
__PACKAGE__->has_many(
279
  "itemtypes_branches",
279
  "itemtypes",
280
  "Koha::Schema::Result::ItemtypesBranch",
280
  "Koha::Schema::Result::Itemtype",
281
  { "foreign.itemtype" => "self.itemtype" },
281
  { "foreign.parent_type" => "self.itemtype" },
282
  { cascade_copy => 0, cascade_delete => 0 },
282
  { cascade_copy => 0, cascade_delete => 0 },
283
);
283
);
284
284
285
=head2 old_reserves
285
=head2 itemtypes_branches
286
286
287
Type: has_many
287
Type: has_many
288
288
289
Related object: L<Koha::Schema::Result::OldReserve>
289
Related object: L<Koha::Schema::Result::ItemtypesBranch>
290
290
291
=cut
291
=cut
292
292
293
__PACKAGE__->has_many(
293
__PACKAGE__->has_many(
294
  "old_reserves",
294
  "itemtypes_branches",
295
  "Koha::Schema::Result::OldReserve",
295
  "Koha::Schema::Result::ItemtypesBranch",
296
  { "foreign.itemtype" => "self.itemtype" },
296
  { "foreign.itemtype" => "self.itemtype" },
297
  { cascade_copy => 0, cascade_delete => 0 },
297
  { cascade_copy => 0, cascade_delete => 0 },
298
);
298
);
Lines 317-337 __PACKAGE__->belongs_to( Link Here
317
  },
317
  },
318
);
318
);
319
319
320
=head2 reserves
321
322
Type: has_many
323
324
Related object: L<Koha::Schema::Result::Reserve>
325
326
=cut
327
328
__PACKAGE__->has_many(
329
  "reserves",
330
  "Koha::Schema::Result::Reserve",
331
  { "foreign.itemtype" => "self.itemtype" },
332
  { cascade_copy => 0, cascade_delete => 0 },
333
);
334
335
320
336
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-22 09:12:04
321
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-22 09:12:04
337
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/kFAnQQ7q1KaLJ9h7vk0vg
322
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/kFAnQQ7q1KaLJ9h7vk0vg
338
- 

Return to bug 25260