コード例 #1
0
ファイル: BasePruebas.php プロジェクト: qwerfaqs/psicotest
 /**
  * Get the associated Evaluaciones object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Evaluaciones The associated Evaluaciones object.
  * @throws     PropelException
  */
 public function getEvaluaciones(PropelPDO $con = null)
 {
     if ($this->aEvaluaciones === null && $this->evaluaciones_id !== null) {
         $this->aEvaluaciones = EvaluacionesPeer::retrieveByPk($this->evaluaciones_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->aEvaluaciones->addPruebass($this);
         		 */
     }
     return $this->aEvaluaciones;
 }
コード例 #2
0
ファイル: actions.class.php プロジェクト: qwerfaqs/psicotest
 public function executeAgregarAspirante(sfWebRequest $request)
 {
     $this->forward404Unless($Evaluacion = EvaluacionesPeer::retrieveByPk($request->getParameter('id')), sprintf('Object Evaluacion does not exist (%s).', $request->getParameter('id')));
     $this->forward404Unless($Aspirante = AspirantesPeer::retrieveByPk($request->getParameter('aspirantes_id')), sprintf('Object Aspirante does not exist (%s).', $request->getParameter('aspirantes_id')));
     $Asistencia = new Asistencias();
     $Asistencia->setEvaluaciones($Evaluacion);
     $Asistencia->setAspirantes($Aspirante);
     $Asistencia->save();
     $this->redirect(url_for('evaluaciones/aspirantesAgregando?id=' . $Evaluacion->getId()));
 }