I have custom action in sonata admin controller.
I need forwarding to another sonata admin controller.
Is it possible?
When I try next:
return $this->forward("DemoBundle:AnotherAdmin:doSomething", array('id' => $id));
next error is shown:
There is no `_sonata_admin` defined for the controller `DemoBundle\Controller\AnotherAdminController` and the current route ``
I've fixed my issue.
return $this->forward("DemoBundle:AnotherAdmin:doSomething", array('id' => $id, '_sonata_admin' => $this->container->get('request')->get('_sonata_admin')));