From a5b03de86fd32b0a51b34fef8e16f6c7fcb2cfa3 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 8 Jun 2022 13:43:01 -0400 Subject: [PATCH] Bug 30612: Update schema files Signed-off-by: Jonathan Druart --- Koha/Schema/Result/Issue.pm | 7 +++++++ Koha/Schema/Result/OldIssue.pm | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index cd024b9de59..7ad235ddf33 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -403,6 +403,13 @@ __PACKAGE__->might_have( { cascade_copy => 0, cascade_delete => 0 }, ); +__PACKAGE__->has_many( + "accountlines", + "Koha::Schema::Result::Accountline", + { "foreign.issue_id" => "self.issue_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + sub koha_object_class { 'Koha::Checkout'; } diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm index 759f7185e19..1ae3e2f87a7 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -366,6 +366,13 @@ Related object: L =cut +__PACKAGE__->has_many( + "accountlines", + "Koha::Schema::Result::Accountline", + { "foreign.issue_id" => "self.issue_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + __PACKAGE__->might_have( "return_claim", "Koha::Schema::Result::ReturnClaim", -- 2.25.1