From 6189f8a7928be9c3dfd6626d93872dcfff8ec35b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 10 May 2023 15:16:57 +0200 Subject: [PATCH] Bug 28844: DBIC specific --- Koha/Schema/Result/Aqorder.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Koha/Schema/Result/Aqorder.pm b/Koha/Schema/Result/Aqorder.pm index 7a9e91ed823..112bedc0344 100644 --- a/Koha/Schema/Result/Aqorder.pm +++ b/Koha/Schema/Result/Aqorder.pm @@ -922,6 +922,18 @@ __PACKAGE__->belongs_to( }, ); +__PACKAGE__->belongs_to( + "suggestion", + "Koha::Schema::Result::Suggestion", + { "foreign.suggestionid" => "self.suggestionid" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "CASCADE", + on_update => "CASCADE", + }, +); + __PACKAGE__->has_many( "additional_field_values", "Koha::Schema::Result::AdditionalFieldValue", -- 2.25.1