protected function txWriteData() { $r = parent::txWriteData(); if ($r === false && $this->data != $this->originalData && $this->readOnly) { throw new RuntimeException($this->file . ' is not writable'); } return $r; }