if ( !$this->NfeHeader->save($save2, true, [ "is_active", "nfe_return_code_id", ]) ): $ds->rollback(); throw new Exception( __("Houve um erro ao processar o estoque.") ); endif;
The NfeHeader->save method receives three parameters, the second parameter is true, the third parameter is an array, the array contains two items, is_active and nfe_return_code_id.