Example #1
0
 public function reload($deep = false, PropelPDO $con = null)
 {
     if ($this->isDeleted()) {
         throw new PropelException("Cannot reload a deleted object.");
     }
     if ($this->isNew()) {
         throw new PropelException("Cannot reload an unsaved object.");
     }
     if ($con === null) {
         $con = Propel::getConnection(AlumnoPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $stmt = AlumnoPeer::doSelectStmt($this->buildPkeyCriteria(), $con);
     $row = $stmt->fetch(PDO::FETCH_NUM);
     $stmt->closeCursor();
     if (!$row) {
         throw new PropelException('Cannot find matching row in the database to reload object values.');
     }
     $this->hydrate($row, 0, true);
     if ($deep) {
         $this->aProvincia = null;
         $this->aTipodocumento = null;
         $this->aEstablecimiento = null;
         $this->aCuenta = null;
         $this->aConceptobaja = null;
         $this->aPais = null;
         $this->aEstadosalumnos = null;
         $this->collRelCalendariovacunacionAlumnos = null;
         $this->lastRelCalendariovacunacionAlumnoCriteria = null;
         $this->collLegajopedagogicos = null;
         $this->lastLegajopedagogicoCriteria = null;
         $this->collAsistencias = null;
         $this->lastAsistenciaCriteria = null;
         $this->collBoletinConceptuals = null;
         $this->lastBoletinConceptualCriteria = null;
         $this->collBoletinActividadess = null;
         $this->lastBoletinActividadesCriteria = null;
         $this->collExamens = null;
         $this->lastExamenCriteria = null;
         $this->collRelAlumnoDivisions = null;
         $this->lastRelAlumnoDivisionCriteria = null;
         $this->collRelRolresponsableResponsables = null;
         $this->lastRelRolresponsableResponsableCriteria = null;
         $this->collLegajosaluds = null;
         $this->lastLegajosaludCriteria = null;
         $this->collAlumnoSaluds = null;
         $this->lastAlumnoSaludCriteria = null;
     }
 }
Example #2
0
 public static function doSelect(Criteria $criteria, PropelPDO $con = null)
 {
     return AlumnoPeer::populateObjects(AlumnoPeer::doSelectStmt($criteria, $con));
 }