symfony - SELECT etat, count( * ) AS 'nombre' from commande GROUP BY etat; -
how transform query dql :
select etat, count( * ) 'nombre' commande group etat;
please try
select c,count(c.id) nombre acmebundle:commande c group c.etat
where clause not included. should have commande entity. return fields commande entity , count. can rectify needs
Comments
Post a Comment