src/Leevel/Database/Condition.php
public function forUpdate(bool $flag = true): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->options['forUpdate'] = $flag;

        return $this;
    }
public function forUpdate(bool $flag = true): self
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->options['forUpdate'] = $flag;

        return $this;
    }
是否构造一个 FOR UPDATE 查询.

@param bool $flag

@return $this