/** * TODO: Check related records. */ public function executeDelete(sfWebRequest $request) { $request->checkCSRFProtection(); $this->forward404Unless($person = PersonPeer::retrieveByPk($request->getParameter('id')), sprintf('Object person does not exist (%s).', $request->getParameter('id'))); $person->delete(); $this->redirect('account/index'); }