protected function doSave($con) { $affectedRows = 0; if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->aEtime !== null) { if ($this->aEtime->isModified()) { $affectedRows += $this->aEtime->save($con); } $this->setEtime($this->aEtime); } if ($this->aTag !== null) { if ($this->aTag->isModified()) { $affectedRows += $this->aTag->save($con); } $this->setTag($this->aTag); } if ($this->isModified()) { if ($this->isNew()) { $pk = EtimeTagPeer::doInsert($this, $con); $affectedRows += 1; $this->setNew(false); } else { $affectedRows += EtimeTagPeer::doUpdate($this, $con); } $this->resetModified(); } $this->alreadyInSave = false; } return $affectedRows; }