I am trying to use query_builder-approach to ‘feed’ my datagrid with data according to the docs:
However, I am unable to register the necessary service:
An exception has been thrown during the rendering of a template (“You have requested a non-existent service “oro_user.repository”.”) in OroUIBundle:actions:index.html.twig at line 50.
my datagrids.ymlPHP12345678910111213141516users-grid:source:type: ormquery_builder: "@oro_user.repository->findEnabledUsersQB"columns:id:label: IDname:label: NamecreatedAt:label: oro.ui.created_atfrontend_type: datetimeupdatedAt:label: oro.ui.updated_atfrontend_type: datetime
my services.ymlPHP123456789parameters:oro_user.repository.class: Oro\Bundle\UserBundle\Entity\Repository\UserRepositoryservices:oro_user.repository:class: '%oro_user.repository.class%'arguments:- '@doctrine.orm.entity_manager'
I assume, arguments are not fitting. Or should I tag the service in some way?
What I am doing wrong?
The forum ‘OroPlatform’ is closed to new topics and replies.