src/Leevel/Database/Ddd/Relation/Relation.php
public static function withoutRelationCondition(Closure $returnRelation): self
    {
        $old = static::$relationCondition;
        static::$relationCondition = false;

        $relation = call_user_func($returnRelation);

        static::$relationCondition = $old;

        return $relation;
    }
public static function withoutRelationCondition(Closure $returnRelation): self
    {
        $old = static::$relationCondition;
        static::$relationCondition = false;

        $relation = call_user_func($returnRelation);

        static::$relationCondition = $old;

        return $relation;
    }
获取不带关联条件的关联对象.

@param \Closure $returnRelation

@return \Leevel\Database\Ddd\Relation\Relation