At least tell me I'm talking rubbish because I'm going crazy over this.
I thought of linking posts to forums directly in order to get post_count to
work but this will get a huge set of date on a find all query.
On Tue, Sep 7, 2010 at 6:37 PM, Andrei Mita wrote:
> Hello,
>
> I was wondering if you could use counterCache for deeper level
> associations. I'm not sure if I'm saying it right.
>
> Let's say we have 3 tables: forums, topics and posts.
>
> Forum hasMany Topic
> Topic hasMany Post
>
> I can make the topic_count field in Forum update when a new topic is added
> and I can also update the post_count field in Topic when a new post is added
> with the help of counterCache.
>
> But, can I update the field post_count in Forum with counterCache when a
> new post is added?
>
> Thanks,
> Andrei
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en