getEntityManager change to getManager