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

(-)a/Koha/Schema/Result/Issue.pm (+15 lines)
Lines 373-378 __PACKAGE__->belongs_to( Link Here
373
  },
373
  },
374
);
374
);
375
375
376
=head2 return_claim
377
378
Type: might_have
379
380
Related object: L<Koha::Schema::Result::ReturnClaim>
381
382
=cut
383
384
__PACKAGE__->might_have(
385
    "return_claim",
386
    "Koha::Schema::Result::ReturnClaim",
387
    { "foreign.issue_id" => "self.issue_id" },
388
    { cascade_copy       => 0, cascade_delete => 0 },
389
);
390
376
sub koha_object_class {
391
sub koha_object_class {
377
    'Koha::Checkout';
392
    'Koha::Checkout';
378
}
393
}
(-)a/Koha/Schema/Result/OldIssue.pm (+15 lines)
Lines 343-348 __PACKAGE__->belongs_to( Link Here
343
  },
343
  },
344
);
344
);
345
345
346
=head2 return_claim
347
348
Type: might_have
349
350
Related object: L<Koha::Schema::Result::ReturnClaim>
351
352
=cut
353
354
__PACKAGE__->might_have(
355
    "return_claim",
356
    "Koha::Schema::Result::ReturnClaim",
357
    { "foreign.issue_id" => "self.issue_id" },
358
    { cascade_copy       => 0, cascade_delete => 0 },
359
);
360
346
sub koha_object_class {
361
sub koha_object_class {
347
    'Koha::Old::Checkout';
362
    'Koha::Old::Checkout';
348
}
363
}
(-)a/Koha/Schema/Result/ReturnClaim.pm (-1 / +36 lines)
Lines 280-285 __PACKAGE__->belongs_to( Link Here
280
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-17 10:01:24
280
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-11-17 10:01:24
281
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ik93SD3kLNecIyRgsBVKDQ
281
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ik93SD3kLNecIyRgsBVKDQ
282
282
283
=head2 issue
284
 
285
Type: belongs_to
286
 
287
Related object: L<Koha::Schema::Result::Issue>
288
 
289
=cut
290
 
291
__PACKAGE__->belongs_to(
292
    "issue",
293
    "Koha::Schema::Result::Issue",
294
    { issue_id => "issue_id" },
295
    {
296
        is_deferrable => 1,
297
        join_type     => "LEFT",
298
    },
299
);
300
301
=head2 old_issue
302
 
303
Type: belongs_to
304
 
305
Related object: L<Koha::Schema::Result::OldIssue>
306
 
307
=cut
308
 
309
__PACKAGE__->belongs_to(
310
    "old_issue",
311
    "Koha::Schema::Result::OldIssue",
312
    { issue_id => "issue_id" },
313
    {
314
        is_deferrable => 1,
315
        join_type     => "LEFT",
316
    },
317
);
318
283
sub koha_objects_class {
319
sub koha_objects_class {
284
    'Koha::Checkouts::ReturnClaims';
320
    'Koha::Checkouts::ReturnClaims';
285
}
321
}
286
- 

Return to bug 29495