Using $this->render('Bundle:Controller:View', [$MyDoctrineQueryResult])
I have sent a doctrine query result to a twig view which creates a report. Now I have to give the client the option to export such report to Excel. I have the code to do such thing already working but I haven't find out a way to send the $MyDoctrineQueryResult array from the twig view to the controller that have the Export to Excel code. Please any help would be apreciated.