public function update($null_values = false) { $textMasterAPI = new TextMasterAPI(); $result = $textMasterAPI->updateProject($this->api_data); if (!is_array($result)) { return $result; } // error return parent::update($null_values); }