What version of cake. I think you are going to have to use the 'with'
association.

$this->Tag->(WithModel)->findCount(array('tag_id'=>$tag_id));


On Feb 25, 8:35 am, roryy <[EMAIL PROTECTED]> wrote:
> hi I have a question about counting fields.
>
> I have these tables: tags, posts and posts_tags, does someone know how
> I can count how many posts use one tag?
>
> Thanks in advance :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to