Think/Model/RelationModel.php
public function relationGet($name)
    {
        if (empty($this->data)) {
            return false;
        }

        return $this->getRelation($this->data, $name, true);
    }
public function relationGet($name)
    {
        if (empty($this->data)) {
            return false;
        }

        return $this->getRelation($this->data, $name, true);
    }
关联数据获取 仅用于查询后


@param string $name 关联名称

@return array|bool