private function makeSyncEntry($userInfo, $orderDetailsId) { $newOrderDetails = $this->getTableObj()->getOrderDetails($orderDetailsId); if ($newOrderDetails) { $syncController = new SyncController(); $orderDetailsEntry = $syncController->orderDetailsEntry($userInfo->userId, json_encode($newOrderDetails), $this->insert, $userInfo->restaurantId); } }