This topic contains 6 replies, has 2 voices, and was last updated by Mike Kudelya 7 years, 6 months ago.
- Topic
Hi,
I use OroImportExportBundle to export datas in a custom action like this :
123456789101112131415161718192021$query = $this->getDoctrine()->getRepository('RepositoryEntity')->createQueryBuilder('s')->setMaxResults(1)->getQuery();$options = ['queryBuilder' => $query];return $this->get('oro_importexport.handler.export')->handleExport('entity_export_to_csv','custom_service_oro_importexport.processor','export','csv',null,array_merge($options,['organization' => $this->get('oro_security.security_facade')->getOrganization()]));When JobInstance Entity would persist it throw a serialization error :
Serialization of ‘Closure’ is not allowed
Due things in key _em of QueryBuilder Object…
Is the right to do ? Is another to way to use export bundle with complex query ?
Thanks
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.