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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -