Update and delete query are not showing any error if the id is not found in db , its showing success in both cases if id found or not found, queries are working fine but not showing any error of id not found
$phql = "DELETE FROM TaskqueApi\Models\Uploads WHERE iduploads='$upload_id'";
$status = $this->modelsManager->executeQuery($phql);
if ($status->success() == true) {
$response['message'] = "Attachment Deleted Successfully";
} else {
$response = array();
foreach ($status->getMessages() as $message) {
$response['message'] = $message->getMessage();
}
}