protected function doSave($con) { $affectedRows = 0; if (!$this->alreadyInSave) { $this->alreadyInSave = true; if ($this->aMemberType !== null) { if ($this->aMemberType->isModified()) { $affectedRows += $this->aMemberType->save($con); } $this->setMemberType($this->aMemberType); } if ($this->aMemberJob !== null) { if ($this->aMemberJob->isModified() || $this->aMemberJob->getCurrentMemberJobI18n()->isModified()) { $affectedRows += $this->aMemberJob->save($con); } $this->setMemberJob($this->aMemberJob); } if ($this->isModified()) { if ($this->isNew()) { $pk = MemberAclPeer::doInsert($this, $con); $affectedRows += 1; $this->setNew(false); } else { $affectedRows += MemberAclPeer::doUpdate($this, $con); } $this->resetModified(); } $this->alreadyInSave = false; } return $affectedRows; }