public function executeDelete(sfWebRequest $request) { $request->checkCSRFProtection(); $this->dispatcher->notify(new sfEvent($this, 'admin.delete_object', array('object' => $this->getRoute()->getObject()))); $this->getRoute()->getObject()->delete(); $this->getUser()->setFlash('notice', 'The item was deleted successfully.'); $this->redirect('@ Fatal error: Using $this when not in object context in /www/virtual/s/starostwo-ustrzyki/htdocs/bip2/symfony/lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/parts/deleteAction.php on line 11