/** * 关联公众号 * @return \yii\db\ActiveQuery */ public function getWechat() { return $this->hasOne(Wechat::className(), ['id' => 'wid']); }