I'm trying to edit an associative array containing order info.
This array for our backend application gets created under sales_order_place_after event once the order is placed .Everything works as expected except when the order is placed with empty gift message.
sales_order_save_after being used to only fetch the gift message fails when the order is placed without any optional gift message.
Order gets placed successfully, and the second observer class gets the control but fails when the execution reaches this line of code
!empty($this->_orderGiftRepo->get($order->getId())) Any help/suggestion is greatly appreciated.