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