src/Leevel/Database/Ddd/Entity.php
protected function loadDataFromRelation(string $prop)
    {
        $relation = $this->loadRelation($prop);
        $result = $relation->sourceQuery();

        $this->withRelationProp($prop, $result);

        return $result;
    }
protected function loadDataFromRelation(string $prop)
    {
        $relation = $this->loadRelation($prop);
        $result = $relation->sourceQuery();

        $this->withRelationProp($prop, $result);

        return $result;
    }
从关联中读取数据.

@param string $prop

@return mixed