From 82c553ca9021853b0d63d02782e31bd68730339c 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 (cherry picked from commit 6a9cc05a0a046ba7535e7258e563fb8ec16d9ee3) Signed-off-by: Victor Grousset/tuxayo --- 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 612b4bc047..f63a7a4fb8 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 12:22:27 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:unur5fA8ERmVpNrqQonzMw +__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" }, +); # You can replace this text with custom content, and it will be preserved on regeneration 1; -- 2.39.5