示例#1
0
 public function executeQuitarTest(sfWebRequest $request)
 {
     //Esto se podria hacer por ajax
     $this->forward404Unless($Prueba = PruebasPeer::retrieveByPk($request->getParameter('pruebas_id')), sprintf('Object Prueba does not exist (%s).', $request->getParameter('pruebas_id')));
     $Prueba->delete();
     $this->redirect(url_for('evaluaciones/testList?id=' . $request->getParameter('id')));
 }
示例#2
0
 public function executeDelete(sfWebRequest $request)
 {
     $request->checkCSRFProtection();
     $this->forward404Unless($Prueba = PruebasPeer::retrieveByPk($request->getParameter('id')), sprintf('Object Prueba does not exist (%s).', $request->getParameter('id')));
     $Prueba->delete();
     $this->redirect('pruebas/index');
 }
示例#3
0
 /**
  * Get the associated Pruebas object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Pruebas The associated Pruebas object.
  * @throws     PropelException
  */
 public function getPruebas(PropelPDO $con = null)
 {
     if ($this->aPruebas === null && $this->pruebas_id !== null) {
         $this->aPruebas = PruebasPeer::retrieveByPk($this->pruebas_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->aPruebas->addResultadoss($this);
         		 */
     }
     return $this->aPruebas;
 }