I need to use GROUP_CONCAT (or something similar) in a select statement. The following code does not work because GROUP_CONCAT is specified incorrectly, but the idea is conveyed correctly:
I have not been able to figure out how to do this with any aggregating functions. Any help would be greatly appreciated.
Code:
$query = $utils["entityManager"]
->getQueryBuilder()
->select(array(
...
"GROUP_CONCAT('id')",
))
->from('Note')
->where(array(
...
))
->groupBy("parentType")
->build();

Comment