public function changeOrderStatus($orderId, $status, $restaurantId) { $statusResult = $this->getTableObj()->changeStatus($orderId, $status); if ($statusResult) { $orderStatusDto = new DownloadDTO\OrderStatusDto($orderId, $status); $syncController = new SyncController(); $result = $syncController->orderEntry(NULL, json_encode($orderStatusDto), UPDATE_OPERATION, $restaurantId); } return $statusResult; }