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