save($model)){ return $model; } } catch (QueryException $exception){ throw new MalformedRequestException($exception->getMessage()); } } }