Use ObjectManager instead of EntityManager