/** * @return \yii\db\ActiveQuery */ public function getAppkey() { return $this->hasOne(AccessApp::className(), ['appkey' => 'appkey']); }