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/Borrower.pm (-32 / +17 lines)
Lines 1204-1209 __PACKAGE__->has_many( Link Here
1204
  { cascade_copy => 0, cascade_delete => 0 },
1204
  { cascade_copy => 0, cascade_delete => 0 },
1205
);
1205
);
1206
1206
1207
=head2 holds
1208
1209
Type: has_many
1210
1211
Related object: L<Koha::Schema::Result::Hold>
1212
1213
=cut
1214
1215
__PACKAGE__->has_many(
1216
  "holds",
1217
  "Koha::Schema::Result::Hold",
1218
  { "foreign.patron_id" => "self.borrowernumber" },
1219
  { cascade_copy => 0, cascade_delete => 0 },
1220
);
1221
1207
=head2 housebound_profile
1222
=head2 housebound_profile
1208
1223
1209
Type: might_have
1224
Type: might_have
Lines 1414-1434 __PACKAGE__->has_many( Link Here
1414
  { cascade_copy => 0, cascade_delete => 0 },
1429
  { cascade_copy => 0, cascade_delete => 0 },
1415
);
1430
);
1416
1431
1417
=head2 old_reserves
1418
1419
Type: has_many
1420
1421
Related object: L<Koha::Schema::Result::OldReserve>
1422
1423
=cut
1424
1425
__PACKAGE__->has_many(
1426
  "old_reserves",
1427
  "Koha::Schema::Result::OldReserve",
1428
  { "foreign.borrowernumber" => "self.borrowernumber" },
1429
  { cascade_copy => 0, cascade_delete => 0 },
1430
);
1431
1432
=head2 opac_news
1432
=head2 opac_news
1433
1433
1434
Type: has_many
1434
Type: has_many
Lines 1534-1554 __PACKAGE__->has_many( Link Here
1534
  { cascade_copy => 0, cascade_delete => 0 },
1534
  { cascade_copy => 0, cascade_delete => 0 },
1535
);
1535
);
1536
1536
1537
=head2 reserves
1538
1539
Type: has_many
1540
1541
Related object: L<Koha::Schema::Result::Reserve>
1542
1543
=cut
1544
1545
__PACKAGE__->has_many(
1546
  "reserves",
1547
  "Koha::Schema::Result::Reserve",
1548
  { "foreign.borrowernumber" => "self.borrowernumber" },
1549
  { cascade_copy => 0, cascade_delete => 0 },
1550
);
1551
1552
=head2 return_claims_borrowernumbers
1537
=head2 return_claims_borrowernumbers
1553
1538
1554
Type: has_many
1539
Type: has_many
Lines 1865-1872 Composing rels: L</aqorder_users> -> ordernumber Link Here
1865
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1850
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1866
1851
1867
1852
1868
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
1853
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-01-27 19:57:36
1869
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Q9AXeEJckLl7CX6E40DUBw
1854
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/2BwaVWoH8XxsDaSdKrSmg
1870
1855
1871
__PACKAGE__->add_columns(
1856
__PACKAGE__->add_columns(
1872
    '+anonymized'    => { is_boolean => 1 },
1857
    '+anonymized'    => { is_boolean => 1 },
(-)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/ClubHoldsToPatronHold.pm (-5 / +5 lines)
Lines 127-140 __PACKAGE__->belongs_to( Link Here
127
127
128
Type: belongs_to
128
Type: belongs_to
129
129
130
Related object: L<Koha::Schema::Result::Reserve>
130
Related object: L<Koha::Schema::Result::Hold>
131
131
132
=cut
132
=cut
133
133
134
__PACKAGE__->belongs_to(
134
__PACKAGE__->belongs_to(
135
  "hold",
135
  "hold",
136
  "Koha::Schema::Result::Reserve",
136
  "Koha::Schema::Result::Hold",
137
  { reserve_id => "hold_id" },
137
  { id => "hold_id" },
138
  {
138
  {
139
    is_deferrable => 1,
139
    is_deferrable => 1,
140
    join_type     => "LEFT",
140
    join_type     => "LEFT",
Lines 159-166 __PACKAGE__->belongs_to( Link Here
159
);
159
);
160
160
161
161
162
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47
162
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-12-23 18:15:59
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/T626DfqUi7SnXOyieUzYw
163
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+4gsVD0A0ycl+KrVzRmXCA
164
164
165
sub koha_objects_class {
165
sub koha_objects_class {
166
    'Koha::Club::Hold::PatronHolds';
166
    'Koha::Club::Hold::PatronHolds';
(-)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 (-32 / +16 lines)
Lines 242-288 __PACKAGE__->has_many( Link Here
242
  { cascade_copy => 0, cascade_delete => 0 },
242
  { cascade_copy => 0, cascade_delete => 0 },
243
);
243
);
244
244
245
=head2 itemtypes
245
=head2 holds
246
246
247
Type: has_many
247
Type: has_many
248
248
249
Related object: L<Koha::Schema::Result::Itemtype>
249
Related object: L<Koha::Schema::Result::Hold>
250
250
251
=cut
251
=cut
252
252
253
__PACKAGE__->has_many(
253
__PACKAGE__->has_many(
254
  "itemtypes",
254
  "holds",
255
  "Koha::Schema::Result::Itemtype",
255
  "Koha::Schema::Result::Hold",
256
  { "foreign.parent_type" => "self.itemtype" },
256
  { "foreign.item_type" => "self.itemtype" },
257
  { cascade_copy => 0, cascade_delete => 0 },
257
  { cascade_copy => 0, cascade_delete => 0 },
258
);
258
);
259
259
260
=head2 itemtypes_branches
260
=head2 itemtypes
261
261
262
Type: has_many
262
Type: has_many
263
263
264
Related object: L<Koha::Schema::Result::ItemtypesBranch>
264
Related object: L<Koha::Schema::Result::Itemtype>
265
265
266
=cut
266
=cut
267
267
268
__PACKAGE__->has_many(
268
__PACKAGE__->has_many(
269
  "itemtypes_branches",
269
  "itemtypes",
270
  "Koha::Schema::Result::ItemtypesBranch",
270
  "Koha::Schema::Result::Itemtype",
271
  { "foreign.itemtype" => "self.itemtype" },
271
  { "foreign.parent_type" => "self.itemtype" },
272
  { cascade_copy => 0, cascade_delete => 0 },
272
  { cascade_copy => 0, cascade_delete => 0 },
273
);
273
);
274
274
275
=head2 old_reserves
275
=head2 itemtypes_branches
276
276
277
Type: has_many
277
Type: has_many
278
278
279
Related object: L<Koha::Schema::Result::OldReserve>
279
Related object: L<Koha::Schema::Result::ItemtypesBranch>
280
280
281
=cut
281
=cut
282
282
283
__PACKAGE__->has_many(
283
__PACKAGE__->has_many(
284
  "old_reserves",
284
  "itemtypes_branches",
285
  "Koha::Schema::Result::OldReserve",
285
  "Koha::Schema::Result::ItemtypesBranch",
286
  { "foreign.itemtype" => "self.itemtype" },
286
  { "foreign.itemtype" => "self.itemtype" },
287
  { cascade_copy => 0, cascade_delete => 0 },
287
  { cascade_copy => 0, cascade_delete => 0 },
288
);
288
);
Lines 307-330 __PACKAGE__->belongs_to( Link Here
307
  },
307
  },
308
);
308
);
309
309
310
=head2 reserves
311
312
Type: has_many
313
314
Related object: L<Koha::Schema::Result::Reserve>
315
316
=cut
317
318
__PACKAGE__->has_many(
319
  "reserves",
320
  "Koha::Schema::Result::Reserve",
321
  { "foreign.itemtype" => "self.itemtype" },
322
  { cascade_copy => 0, cascade_delete => 0 },
323
);
324
325
310
326
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
311
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-01-27 19:57:36
327
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iByLvz6PwhMByZC9bJb8ig
312
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0UMD6Is/qWhwz3LZxiRibA
328
313
329
__PACKAGE__->add_columns(
314
__PACKAGE__->add_columns(
330
    '+rentalcharge_hourly_calendar' => { is_boolean => 1 },
315
    '+rentalcharge_hourly_calendar' => { is_boolean => 1 },
331
- 

Return to bug 25260