change getEntityManager for getManager