#5298: callbacks enabled for deleteAll in TreeBehavior --------------------------------+------------------------------------------- Reporter: techlands | Owner: Type: Enhancement | Status: new Priority: Medium | Milestone: 1.3.x.x Component: Behaviors | Version: Severity: Normal | Resolution: Keywords: tree, callbacks | Php_version: n/a Cake_version: | --------------------------------+------------------------------------------- Comment (by nescha):
There is a problem if you use deleteAll() where callbacks param is set to true and scope is set ot list of ids., on model that has tree behavior. Inside deleteAll() there is [https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/model.php#L1826 find()] that doesn't respect hierarchy of nodes in the tree, where parent node can delete its children in beforeDelete() of !TreeBehavior, but in list of ids can be also already deleted id. -- Ticket URL: <https://trac.cakephp.org/ticket/5298#comment:2> CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/> Cake is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tickets cakephp" group. To post to this group, send email to tickets-cakephp@googlegroups.com To unsubscribe from this group, send email to tickets-cakephp+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/tickets-cakephp?hl=en -~----------~----~----~----~------~----~------~--~---