src/Leevel/Database/Condition.php
public function reset(?string $option = null): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        if (null === $option) {
            $this->initOption();
        } elseif (array_key_exists($option, static::$optionsDefault)) {
            $this->options[$option] = static::$optionsDefault[$option];
        }

        return $this;
    }
public function reset(?string $option = null): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        if (null === $option) {
            $this->initOption();
        } elseif (array_key_exists($option, static::$optionsDefault)) {
            $this->options[$option] = static::$optionsDefault[$option];
        }

        return $this;
    }
重置查询条件.

@param null|string $option

@return $this