Re: Delete translated contents for a Tree Model

2011-09-07 Thread avairet
Hi there, I've made this in the model which uses the Tree and Translate behaviors: // Add a private var in the model, to store children of record to delete private $translated_children = array(); // Add callbacks to store children and delete it public function beforeDelete() {

Delete translated contents for a Tree Model

2011-09-01 Thread avairet
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