id; } $servers = $this->serverRepository->setColumns('id')->findCountWhere([['owner_id', '=', $user]]); if ($servers > 0) { throw new DisplayException($this->translator->get('admin/user.exceptions.user_has_servers')); } $this->repository->delete($user); } }