This topic contains 3 replies, has 2 voices, and was last updated by Frank 3 years ago.
-
Topic
-
Hi there,
I am trying to use query_builder-approach to ‘feed’ my datagrid with data according to the docs:
https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/DataGridBundle/Resources/doc/backend/datagrid.mdHowever, 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.yml
12345678910111213141516users-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(OroUserBundle/Repository/UserRepository::findEnabledUserQB)
my services.yml
123456789parameters: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?
Thanks
Frank
The forum ‘OroPlatform’ is closed to new topics and replies.