Changed the name of parameter to objectManager instead of entityManager