src/Leevel/Database/Ddd/Entity.php
public function databaseSelect(): DatabaseSelect
    {
        if ($this->leevelScopeSelect) {
            return $this->leevelScopeSelect;
        }

        return $this
            ->metaConnect()
            ->select()
            ->asClass(static::class, [true])
            ->asCollection();
    }
public function databaseSelect(): DatabaseSelect
    {
        if ($this->leevelScopeSelect) {
            return $this->leevelScopeSelect;
        }

        return $this
            ->metaConnect()
            ->select()
            ->asClass(static::class, [true])
            ->asCollection();
    }
返回数据库查询集合对象.

@return \Leevel\Database\Select