From 9999d88169db3bd51d30b489d762a615c1872f7f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 13 Sep 2020 23:31:52 +0000 Subject: [PATCH] Bug 18050: Add relation alias to schema Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit 2800b53bdd6df1e87f72673bc79ed4896f4e4e35) Signed-off-by: Lucas Gass --- Koha/Schema/Result/Aqbudget.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Koha/Schema/Result/Aqbudget.pm b/Koha/Schema/Result/Aqbudget.pm index 8da77df38d..89ea4cbcd8 100644 --- a/Koha/Schema/Result/Aqbudget.pm +++ b/Koha/Schema/Result/Aqbudget.pm @@ -322,6 +322,12 @@ __PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumbe # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-11-13 21:13:32 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3u8RuxkSI5UJ4flK6hd64w +__PACKAGE__->belongs_to( + "budget", + "Koha::Schema::Result::Aqbudgetperiod", + { "foreign.budget_period_id" => "self.budget_period_id" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, +); sub koha_object_class { 'Koha::Acquisition::Fund'; -- 2.39.5