protected function doSave(PropelPDO $con) { $affectedRows = 0; if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->aProvincia !== null) { if ($this->aProvincia->isModified() || $this->aProvincia->isNew()) { $affectedRows += $this->aProvincia->save($con); } $this->setProvincia($this->aProvincia); } if ($this->aTipodocumento !== null) { if ($this->aTipodocumento->isModified() || $this->aTipodocumento->isNew()) { $affectedRows += $this->aTipodocumento->save($con); } $this->setTipodocumento($this->aTipodocumento); } if ($this->aEstablecimiento !== null) { if ($this->aEstablecimiento->isModified() || $this->aEstablecimiento->isNew()) { $affectedRows += $this->aEstablecimiento->save($con); } $this->setEstablecimiento($this->aEstablecimiento); } if ($this->aCuenta !== null) { if ($this->aCuenta->isModified() || $this->aCuenta->isNew()) { $affectedRows += $this->aCuenta->save($con); } $this->setCuenta($this->aCuenta); } if ($this->aConceptobaja !== null) { if ($this->aConceptobaja->isModified() || $this->aConceptobaja->isNew()) { $affectedRows += $this->aConceptobaja->save($con); } $this->setConceptobaja($this->aConceptobaja); } if ($this->aPais !== null) { if ($this->aPais->isModified() || $this->aPais->isNew()) { $affectedRows += $this->aPais->save($con); } $this->setPais($this->aPais); } if ($this->aEstadosalumnos !== null) { if ($this->aEstadosalumnos->isModified() || $this->aEstadosalumnos->isNew()) { $affectedRows += $this->aEstadosalumnos->save($con); } $this->setEstadosalumnos($this->aEstadosalumnos); } if ($this->isNew()) { $this->modifiedColumns[] = AlumnoPeer::ID; } if ($this->isModified()) { if ($this->isNew()) { $pk = AlumnoPeer::doInsert($this, $con); $affectedRows += 1; $this->setId($pk); $this->setNew(false); } else { $affectedRows += AlumnoPeer::doUpdate($this, $con); } $this->resetModified(); } if ($this->collRelCalendariovacunacionAlumnos !== null) { foreach ($this->collRelCalendariovacunacionAlumnos as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collLegajopedagogicos !== null) { foreach ($this->collLegajopedagogicos as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collAsistencias !== null) { foreach ($this->collAsistencias as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collBoletinConceptuals !== null) { foreach ($this->collBoletinConceptuals as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collBoletinActividadess !== null) { foreach ($this->collBoletinActividadess as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collExamens !== null) { foreach ($this->collExamens as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collRelAlumnoDivisions !== null) { foreach ($this->collRelAlumnoDivisions as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collRelRolresponsableResponsables !== null) { foreach ($this->collRelRolresponsableResponsables as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collLegajosaluds !== null) { foreach ($this->collLegajosaluds as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } if ($this->collAlumnoSaluds !== null) { foreach ($this->collAlumnoSaluds as $referrerFK) { if (!$referrerFK->isDeleted()) { $affectedRows += $referrerFK->save($con); } } } $this->alreadyInSave = false; } return $affectedRows; }