SonataAdminBundle Exporter issue with mapped entities
问题 There is a standard feature in sonata-admin-bundle to export data using exporter; But how to make export current entity AND mapped ManyToOne entity with it? Basically what I want, is to download exactly same data as defined in ListFields. UPD: In docs, there is only todo UPD2: I've found one solution, but I do not think it is the best one: /** * Add some fields from mapped entities; the simplest way; * @return array */ public function getExportFields() { $fieldsArray = $this->getModelManager(