diff --git a/README.md b/README.md index fb61d5a..e40e5a1 100755 --- a/README.md +++ b/README.md @@ -103,35 +103,12 @@ class YourController extends AbstractCrudController public function yourAction() { - $sql = "select - ev.event_data_inicio as data_evento, - en.end_cidade as cidade, - en.end_estado as estado, - COUNT(p.part_id) as participante, - us.user_nome as treinadora, - ca.cat_nome as modulo - from EventosRest\Entity\Participante as p - INNER JOIN Evento\Entity\Evento as ev - WITH p.evento_event_id = ev.event_id - INNER JOIN Evento\Entity\Endereco as en - WITH ev.endereco_end_id = en.end_id - INNER JOIN Evento\Entity\Categoria as ca - WITH ev.categoria_cat_id = ca.cat_id - INNER JOIN Evento\Entity\User as u - WITH u.user_id = p.user_user_id - INNER JOIN Evento\Entity\Palestrante as pa - WITH pa.evento_event_id = p.evento_event_id - INNER JOIN Evento\Entity\User as us - WITH pa.user_user_id = us.user_id - GROUP BY cidade"; + $sql = "Your query"; $filePath = $this->customExportService->export($sql, array( - 'data_evento', - 'cidade', - 'estado', - 'participante', - 'treinadora', - 'modulo' + 'your', + 'header', + 'fields' ), 'xls'); return $this->redirect()->toUrl($filePath);