Yes, I did manually update all the fields and later tried to insert/
delete comments, but with no luck. Probably I have ruined the
automagic somewhere else in my add/delete code, but I doubt it.

I fixed the issue by adding two snippets to increment/decrement the
count on insert and delete. The magic didn't work for me. :)

On Apr 19, 10:33 am, WebbedIT <[email protected]> wrote:
> Have your added the comment_count field to the news table and have you
> ran a query to update the counts as Cake only updates those counts
> using afterSave afterDelete?
>
> HTH
>
> Paul.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

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 [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

Reply via email to