src/Leevel/Database/Ddd/Repository.php
public function findAll($condition = null): Collection
    {
        $select = $this->entity->selfDatabaseSelect();

        if ($condition) {
            $this->normalizeCondition($condition, $select);
        }

        return $select->findAll();
    }
public function findAll($condition = null): Collection
    {
        $select = $this->entity->selfDatabaseSelect();

        if ($condition) {
            $this->normalizeCondition($condition, $select);
        }

        return $select->findAll();
    }
取得所有记录.

@param null|array|\Closure|\Leevel\Database\Ddd\ISpecification|string $condition

@return \Leevel\Collection\Collection