Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このクエリを DQL に変換する方法:
SELECT etat, count( * ) AS 'nombre' from commande GROUP BY etat;
これを試してください
select c,count(c.id) nombre from acmeBundle:commande c group by c.etat
Where句は含まれていません。コマンドエンティティが必要です。コマンドエンティティとカウントからすべてのフィールドを返します。ニーズに合わせて修正できます