Fix deprecated call to getEntityManager