remove useless code
This commit is contained in:
parent
005e755158
commit
2ce9de08ff
|
@ -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', [
|
||||
|
|
|
@ -66,6 +66,5 @@ class EntityManager
|
|||
protected function persist(Entity $entity)
|
||||
{
|
||||
$this->entityManager->persist($entity);
|
||||
$this->entityManager->flush();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue