The Doctrine Registry need to be injected and not the ``EntityManager``