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