From 6a9cc05a0a046ba7535e7258e563fb8ec16d9ee3 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 (cherry picked from commit 9999d88169db3bd51d30b489d762a615c1872f7f) Signed-off-by: Aleisha Amohia --- 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 3c03c9d8b6..d4db80fa4d 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-17 17:49:28 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vKb2T0A93tOE9HD7TfFY1A +__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