src/Leevel/Database/Condition.php
protected function callJoinSugar(string $method, array $args)
    {
        if (!in_array($method, [
            'innerJoin', 'leftJoin',
            'rightJoin', 'fullJoin',
            'crossJoin', 'naturalJoin',
        ], true)) {
            return false;
        }

        if ($this->checkFlowControl()) {
            return $this;
        }

        $type = substr($method, 0, -4).' join';

        array_unshift($args, $type);

        return $this->addJoin(...$args);
    }
protected function callJoinSugar(string $method, array $args)
    {
        if (!in_array($method, [
            'innerJoin', 'leftJoin',
            'rightJoin', 'fullJoin',
            'crossJoin', 'naturalJoin',
        ], true)) {
            return false;
        }

        if ($this->checkFlowControl()) {
            return $this;
        }

        $type = substr($method, 0, -4).' join';

        array_unshift($args, $type);

        return $this->addJoin(...$args);
    }
调用 join 语法糖.

@param string $method
@param array  $args

@return $this|false