think\model\Relation::getRelationInfo PHP Метод

getRelationInfo() публичный Метод

获取当前关联信息
public getRelationInfo ( string $name = '' ) : array | string | integer
$name string 关联信息
Результат array | string | integer
    public function getRelationInfo($name = '')
    {
        $info = ['type' => $this->type, 'model' => $this->model, 'middle' => $this->middle, 'foreignKey' => $this->foreignKey, 'localKey' => $this->localKey, 'alias' => $this->alias, 'joinType' => $this->joinType];
        return $name ? $info[$name] : $info;
    }