Use getManager, getEntityManager is deprecated