remove useless code

This commit is contained in:
Simon Vieille 2021-03-16 14:05:10 +01:00
parent 005e755158
commit 2ce9de08ff
2 changed files with 0 additions and 3 deletions

View File

@ -84,8 +84,6 @@ class AccountAdminController extends AdminController
return $this->redirectToRoute('admin_account');
}
} else {
return $this->redirectToRoute('admin_account');
}
return $this->render('account/admin/edit.html.twig', [

View File

@ -66,6 +66,5 @@ class EntityManager
protected function persist(Entity $entity)
{
$this->entityManager->persist($entity);
$this->entityManager->flush();
}
}