src/Leevel/Database/Ddd/Select.php
protected function getRelation(string $name): Relation
    {
        $relation = Relation::withoutRelationCondition(function () use ($name) {
            return $this->entity->{$name}();
        });

        $nested = $this->nestedRelation($name);

        if (count($nested) > 0) {
            $relation->getSelect()->eager($nested);
        }

        return $relation;
    }
protected function getRelation(string $name): Relation
    {
        $relation = Relation::withoutRelationCondition(function () use ($name) {
            return $this->entity->{$name}();
        });

        $nested = $this->nestedRelation($name);

        if (count($nested) > 0) {
            $relation->getSelect()->eager($nested);
        }

        return $relation;
    }
取得关联模型实体.

@param string $name

@return \leevel\Database\Ddd\Relation\Relation