代码语言:javascript复制给用户表起别名m
/**
* 获取用户信息
* @return yiidbActiveQuery
*/
public function getUserInfo()
{
return $this->hasOne(Member::className(), ['uid' => 'follow_uid'])
->from(['m' => Member::tableName()]);
}
代码语言:javascript复制给用户表起别名m
/**
* 获取用户信息
* @return yiidbActiveQuery
*/
public function getUserInfo()
{
return $this->hasOne(Member::className(), ['uid' => 'follow_uid'])
->from(['m' => Member::tableName()]);
}