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

(-)a/Koha/Schema/Result/Accountline.pm (-2 / +58 lines)
Lines 41-46 __PACKAGE__->table("accountlines"); Link Here
41
  is_foreign_key: 1
41
  is_foreign_key: 1
42
  is_nullable: 1
42
  is_nullable: 1
43
43
44
=head2 reserve_id
45
46
  data_type: 'integer'
47
  is_foreign_key: 1
48
  is_nullable: 1
49
50
=head2 old_reserve_id
51
52
  data_type: 'integer'
53
  is_foreign_key: 1
54
  is_nullable: 1
55
44
=head2 borrowernumber
56
=head2 borrowernumber
45
57
46
  data_type: 'integer'
58
  data_type: 'integer'
Lines 160-165 __PACKAGE__->add_columns( Link Here
160
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
172
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
161
  "old_issue_id",
173
  "old_issue_id",
162
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
174
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
175
  "reserve_id",
176
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
177
  "old_reserve_id",
178
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
163
  "borrowernumber",
179
  "borrowernumber",
164
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
180
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
165
  "itemnumber",
181
  "itemnumber",
Lines 424-429 __PACKAGE__->belongs_to( Link Here
424
  },
440
  },
425
);
441
);
426
442
443
=head2 old_reserve
444
445
Type: belongs_to
446
447
Related object: L<Koha::Schema::Result::OldReserve>
448
449
=cut
450
451
__PACKAGE__->belongs_to(
452
  "old_reserve",
453
  "Koha::Schema::Result::OldReserve",
454
  { reserve_id => "old_reserve_id" },
455
  {
456
    is_deferrable => 1,
457
    join_type     => "LEFT",
458
    on_delete     => "SET NULL",
459
    on_update     => "CASCADE",
460
  },
461
);
462
427
=head2 register
463
=head2 register
428
464
429
Type: belongs_to
465
Type: belongs_to
Lines 444-452 __PACKAGE__->belongs_to( Link Here
444
  },
480
  },
445
);
481
);
446
482
483
=head2 reserve
484
485
Type: belongs_to
486
487
Related object: L<Koha::Schema::Result::Reserve>
488
489
=cut
490
491
__PACKAGE__->belongs_to(
492
  "reserve",
493
  "Koha::Schema::Result::Reserve",
494
  { reserve_id => "reserve_id" },
495
  {
496
    is_deferrable => 1,
497
    join_type     => "LEFT",
498
    on_delete     => "SET NULL",
499
    on_update     => "CASCADE",
500
  },
501
);
502
447
503
448
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-02-08 14:18:03
504
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-16 10:19:22
449
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aVLdvK1lek01lZ0mbaCwZQ
505
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JGNBdISXLLAdEXI25nrzaQ
450
506
451
=head2 patron
507
=head2 patron
452
508
(-)a/Koha/Schema/Result/OldReserve.pm (-2 / +24 lines)
Lines 332-337 __PACKAGE__->set_primary_key("reserve_id"); Link Here
332
332
333
=head1 RELATIONS
333
=head1 RELATIONS
334
334
335
=head2 accountlines
336
337
Type: has_many
338
339
Related object: L<Koha::Schema::Result::Accountline>
340
341
=cut
342
343
__PACKAGE__->has_many(
344
  "accountlines",
345
  "Koha::Schema::Result::Accountline",
346
  { "foreign.old_reserve_id" => "self.reserve_id" },
347
  { cascade_copy => 0, cascade_delete => 0 },
348
);
349
335
=head2 biblionumber
350
=head2 biblionumber
336
351
337
Type: belongs_to
352
Type: belongs_to
Lines 473-480 __PACKAGE__->belongs_to( Link Here
473
);
488
);
474
489
475
490
476
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-03 17:08:22
491
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-16 10:19:22
477
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bo/exwlpahEVYtkWjusWLw
492
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RLh8fPWOVtWzG3VGOXyz6Q
478
493
479
__PACKAGE__->belongs_to(
494
__PACKAGE__->belongs_to(
480
  "item",
495
  "item",
Lines 551-554 sub koha_objects_class { Link Here
551
    'Koha::Old::Holds';
566
    'Koha::Old::Holds';
552
}
567
}
553
568
569
__PACKAGE__->has_many(
570
  "accountlines",
571
  "Koha::Schema::Result::Accountline",
572
  { "foreign.old_reserve_id" => "self.reserve_id" },
573
  { cascade_copy => 0, cascade_delete => 0 },
574
);
575
554
1;
576
1;
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +24 lines)
Lines 340-345 __PACKAGE__->set_primary_key("reserve_id"); Link Here
340
340
341
=head1 RELATIONS
341
=head1 RELATIONS
342
342
343
=head2 accountlines
344
345
Type: has_many
346
347
Related object: L<Koha::Schema::Result::Accountline>
348
349
=cut
350
351
__PACKAGE__->has_many(
352
  "accountlines",
353
  "Koha::Schema::Result::Accountline",
354
  { "foreign.reserve_id" => "self.reserve_id" },
355
  { cascade_copy => 0, cascade_delete => 0 },
356
);
357
343
=head2 biblionumber
358
=head2 biblionumber
344
359
345
Type: belongs_to
360
Type: belongs_to
Lines 501-508 __PACKAGE__->belongs_to( Link Here
501
);
516
);
502
517
503
518
504
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-03 17:08:22
519
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-16 10:19:22
505
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:57Fw53HngTXhDU7kVEjqYw
520
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oG8jkV5GEf2y6jUCosAHkw
506
521
507
__PACKAGE__->belongs_to(
522
__PACKAGE__->belongs_to(
508
  "item",
523
  "item",
Lines 588-591 __PACKAGE__->belongs_to( Link Here
588
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
603
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
589
);
604
);
590
605
606
__PACKAGE__->has_many(
607
  "accountlines",
608
  "Koha::Schema::Result::Accountline",
609
  { "foreign.reserve_id" => "self.reserve_id" },
610
  { cascade_copy => 0, cascade_delete => 0 },
611
);
612
591
1;
613
1;
592
- 

Return to bug 40817