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