Deprecated getEntityManager udated to getManager