thanks but it doesn't work :(
$this->Tag->Post->findCount(array('tag_id'=> 1)) is what I have, what
did i do wrong?
On 25 feb, 17:01, rtconner <[EMAIL PROTECTED]> wrote:
> 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 cancounthow many posts use one tag?
>
> > Thanks in advance :)- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---