Thank you very much! On 19 Feb, 17:00, John Andersen <[email protected]> wrote: > The deleteAll method does not automatically invoke the afterDelete > method in which the TranslateBehaviour deletes all the related > translations, as shown in the CakePHP book > at:http://book.cakephp.org/#deleteAll-1038 > > Observe that the deleteAll method parameter "callbacks" as default is > set to false. You have to set it to true in order to ensure that the > translations are deletede too. > > Enjoy, > John > > On Feb 18, 9:46 am, Dedo <[email protected]> wrote: > > > > > > > > > Hi, > > > i have two models to draw charts using google visualization: > > ChartModel holds the title of the chart > > ChartEntry holds rows that compose the chart > > > For ChartEntry I use the Translate Behaviour for the label field: when > > i have to update this information I run the code: > > > $this->ChartEntry->deleteAll(array('ChartEntry.chart_id' => > > $chart_id)); > > > But rows in i18n table are not deleted. > > > Anyone has a similar problem? How can i solve it?
-- 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
