public function executeDelete(sfWebRequest $request) { $request->checkCSRFProtection(); $this->forward404Unless($Klient = KlientPeer::retrieveByPk($request->getParameter('id')), sprintf('Object Klient does not exist (%s).', $request->getParameter('id'))); $Klient->delete(); $this->redirect('klient/index'); }
/** * Get the associated Klient object * * @param PropelPDO Optional Connection object. * @return Klient The associated Klient object. * @throws PropelException */ public function getKlientRelatedByKlient(PropelPDO $con = null) { if ($this->aKlientRelatedByKlient === null && $this->klient !== null) { $this->aKlientRelatedByKlient = KlientPeer::retrieveByPk($this->klient); /* 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->aKlientRelatedByKlient->addOdwiedzinys($this); */ } return $this->aKlientRelatedByKlient; }