protected function doSave(PropelPDO $con)
 {
     $affectedRows = 0;
     if (!$this->alreadyInSave) {
         $this->alreadyInSave = true;
         if ($this->aEstablecimiento !== null) {
             if ($this->aEstablecimiento->isModified() || $this->aEstablecimiento->isNew()) {
                 $affectedRows += $this->aEstablecimiento->save($con);
             }
             $this->setEstablecimiento($this->aEstablecimiento);
         }
         if ($this->aLocacion !== null) {
             if ($this->aLocacion->isModified() || $this->aLocacion->isNew()) {
                 $affectedRows += $this->aLocacion->save($con);
             }
             $this->setLocacion($this->aLocacion);
         }
         if ($this->isNew()) {
             $this->modifiedColumns[] = RelEstablecimientoLocacionPeer::ID;
         }
         if ($this->isModified()) {
             if ($this->isNew()) {
                 $pk = RelEstablecimientoLocacionPeer::doInsert($this, $con);
                 $affectedRows += 1;
                 $this->setId($pk);
                 $this->setNew(false);
             } else {
                 $affectedRows += RelEstablecimientoLocacionPeer::doUpdate($this, $con);
             }
             $this->resetModified();
         }
         $this->alreadyInSave = false;
     }
     return $affectedRows;
 }