Le 04/02/2011 10:07, Manu a écrit :
well I was able to make it work by adding "c.id" in the select.

But isn't this a bug ? Doctrine doesn't "see" that I asked for
count(c.id) ?

In your request, the main entity was Content. COUNT(c.id) does not select a field of Content to be able to build the good entity.

As you want to count c.id grouped by a.name, the main entity should be Author.

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to