On 1 Dic, 15:23, Daniel Lohse <[email protected]> wrote:
> This will get messy very fast. Imagine only 20 categories and for this simple 
> count, you'll already have 20 queries. Not good. :(
>
> Normally, you'd do a count on the category_id column and group by the same 
> category_id column. So simple in SQL/Doctrine but so hard in Propel. :(
>
> Daniel

It's not so hard to do a GROUP BY in Propel.
I wrote a post on Italian symfony blog a while ago:
http://www.symfony.it/articoli/121/group-by/
I know, it's in Italian, but the code is straightforward ("Card" in
the post is just an example name for a model)

HTH
Massimiliano

--

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