/** * 联合查询 * @return \yii\db\ActiveQuery */ public function getInfo() { return $this->hasOne(Info::className(), ['member_id' => 'id']); }