0

如何将以下查询转换为教义2查询

with using method createQuery() or createQueryBuilder()

select customer,sum(marks) from BlogBundle:Customers group by customer
4

1 回答 1

0

$qb->select('customer', 'SUM(marks)')->from('BlogBundle:Customers', 'customer')->groupBy('customer.id');
于 2013-01-10T10:00:07.210 回答