public function executeDelete(sfWebRequest $request) { //$request->checkCSRFProtection(); $this->forward404Unless($Config = ConfigPeer::retrieveByPk($request->getParameter('id')), sprintf('Object Config does not exist (%s).', $request->getParameter('id'))); $Config->delete(); $this->redirect('config/index'); }
public function executeShow(sfWebRequest $request) { $this->config = ConfigPeer::retrieveByPk($request->getParameter('id')); $this->forward404Unless($this->config); }
/** * Get the associated Config object * * @param PropelPDO Optional Connection object. * @return Config The associated Config object. * @throws PropelException */ public function getConfig(PropelPDO $con = null) { if ($this->aConfig === null && ($this->config_id !== "" && $this->config_id !== null)) { $this->aConfig = ConfigPeer::retrieveByPk($this->config_id); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aConfig->addAdss($this); */ } return $this->aConfig; }