please typehint the entitymanager ObjectManager ? or something may be a good practice