Hi all, i've set up a nested set behaviour and generate the admin section for this one, but something doesn't work at all: node deletion. I've updated the executeDelete() to handle node deletion:
public function executeDelete(sfWebRequest $request) { $request- >checkCSRFProtection(); $this->dispatcher->notify(new sfEvent($this, 'admin.delete_object', array("object" => $this- >getRoute() - >getObject()))); $object = $this->getRoute()- >getObject(); if ($object->getNode()->isValidNode()) { $object->getNode()- >delete(); } else { $object- >delete(); } $this->getUser()- >setFlash("notice", "The item was deleted successfully."); $this- >redirect("@typology"); } As i read in a couple of tutorial on the Internet, but when i click the delete link, nothing changes, the node supposed to die is still there... Any hints on what i could miss? Cheers, ff0000 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en