public function saveAndUnload($data = []) { $ras = $this->reload_after_save; $this->reload_after_save = false; $this->save($data); $this->unload(); // restore original value $this->reload_after_save = $ras; return $this; }