@@ -, +, @@ --- Koha/Schema/Result/Aqorder.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/Koha/Schema/Result/Aqorder.pm +++ a/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", --