On Wed, Aug 25, 2010 at 1:40 PM, DragonFlyEye <[email protected]> wrote: > Here's an interesting one. I don't know if this has something to do > with using the Tree model behavior or not. What is happening is that, > when I go to delete a record, the system clears all values except for > the ID and leaves the record where it was. > > The delete() function seems pretty straight forward, even for the Tree > behavior. I'm calling it like this: > $this->NavigationNode->id = $this->params['form']['node']; > $message = $this->NavigationNode->delete(); > > And it's definitely working on the correct node_id. It just isn't > deleting the record itself.
That does seem odd. Have you tried passing the id to delete() instead of setting it on the model? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
