protected function doSave($con) { $affectedRows = 0; if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->aAngketpmbSession !== null) { if ($this->aAngketpmbSession->isModified()) { $affectedRows += $this->aAngketpmbSession->save($con); } $this->setAngketpmbSession($this->aAngketpmbSession); } if ($this->aAngketpmbSoal !== null) { if ($this->aAngketpmbSoal->isModified()) { $affectedRows += $this->aAngketpmbSoal->save($con); } $this->setAngketpmbSoal($this->aAngketpmbSoal); } if ($this->aAngketpmbOption !== null) { if ($this->aAngketpmbOption->isModified()) { $affectedRows += $this->aAngketpmbOption->save($con); } $this->setAngketpmbOption($this->aAngketpmbOption); } if ($this->isModified()) { if ($this->isNew()) { $pk = AngketpmbSessionAnswerPeer::doInsert($this, $con); $affectedRows += 1; $this->setId($pk); $this->setNew(false); } else { $affectedRows += AngketpmbSessionAnswerPeer::doUpdate($this, $con); } $this->resetModified(); } $this->alreadyInSave = false; } return $affectedRows; }