I require that in each option of the menu of sonataadmin be able to define the connection to use "because I am using several databases", and tried to configure it from the services file or in the class of the CRUD, but not found How to do it, can you guide me please? thanks!
introducir el código aquí
admin.static.hotels:
class: BasicBundle\Admin\ItemAdmin
arguments: [~, Viajemos\BasicBundle\Document\Item, '@doctrine_mongodb.odm.default_document_manager']
tags:
- { name: sonata.admin, manager_type: doctrine_mongodb, label: Items}