i have a model called Link

it belongs to Webpage and LinkList

LinkList has a counterCache of Link. It works whenever i delete or add
a new Link.

I have also set Webpage hasMany Link where dependent = true and
exclusive = false.

so whenever i delete a Webpage, all the associated Links are deleted
as well.

However the issue is that the counterCache are not updated that way.

i will be coding a afterDelete either in Webpage or Link, however, I
just want to confirm whether I need to do so for cakephp 1.3.9

if I need to code a afterDelete to update the countercache, please
indicate whether it is better to do so in Webpage or in Link,

i am leaning towards Webpage, since when I delete Link, it will
definitely update the countercache for LinkList

Thank you.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to