public function commit() { if ($this->writable()) { return parent::commit(); } else { return false; } }