Refonte EntityManager gestion