/** * @return \yii\db\ActiveQuery */ public function getLoginUser() { return $this->hasOne(Users::className(), ['user_id' => 'login_user_id']); }