I have an if statement similar to this:
$currentAdmin = $entityManager->getRepo(Users)->findOneBy([\'admin\' => 1]); $newAdmin = $entityManager->getRe