Thursday, September 1, 2011

Delete translated contents for a Tree Model

I'm using TranslateBehavior on a model that is a Tree Model.

When I delete a child node from the Tree, related contents in my i18n
table are correctly deleted.
But if I delete a parent node, only related contents for this parent
node are deleted from the i18n table, translated contents for the
child nodes are not deleted.

I see that in the afterDelete() method of TranslateBehavior, a
deleteAll() call is executed, but it take only the current id and it
didn't make a cascading delete.

Have you an idea to improve that?

Hope my question is clear...

Avairet

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: