@@ -, +, @@ --- Koha/Schema/Result/Aqorder.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/Koha/Schema/Result/Aqorder.pm +++ a/Koha/Schema/Result/Aqorder.pm @@ -902,6 +902,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", + }, +); + sub koha_objects_class { 'Koha::Acquisition::Orders'; } --