Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbarros authored Jul 15, 2016
1 parent f575f12 commit 75b055d
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 75b055d

Please sign in to comment.