From 396402aa6850ce1f57106d9820d9081f10256df8 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 Signed-off-by: Tomas Cohen Arazi --- 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 cd024b9de5..7ad235ddf3 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 759f7185e1..1ae3e2f87a 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.39.5