/** * @return \yii\db\ActiveQuery */ public function getAuthLogs() { return $this->hasMany(UserAuthLog::className(), ['userId' => 'id']); }