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