/** * (non-PHPdoc) * @see EPDBObject::saveExisting() */ protected function saveExisting() { if (!$this->inSummaryMode) { static::setReadDb(DB_MASTER); $currentObject = static::selectRow(null, array('id' => $this->getId())); static::setReadDb(DB_SLAVE); } $success = parent::saveExisting(); if ($success && !$this->inSummaryMode) { if ($this->fieldsChanged($currentObject, true)) { $this->storeRevision($currentObject); $this->log('update'); } } return $success; }