replace getEntityManager for getManager