save()){ return $model; } } catch (QueryException $exception){ throw new MalformedRequestException('Unable to update the record due to unexpected error'); } } }