From 7db927478963eed4ebb1ccbc1937e9d17f1f9884 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 --- 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 5d26b5b563..ea43957d7f 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -388,6 +388,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 d119555564..90d6ab5d41 100644 --- a/Koha/Schema/Result/OldIssue.pm +++ b/Koha/Schema/Result/OldIssue.pm @@ -351,6 +351,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.32.0 (Apple Git-132)