Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension user loading loop #33

Closed
qskousen opened this issue Jul 19, 2017 · 1 comment
Closed

Extension user loading loop #33

qskousen opened this issue Jul 19, 2017 · 1 comment

Comments

@qskousen
Copy link

qskousen commented Jul 19, 2017

Using Laravel 5.4. Doctrine is handling the users model.

When certain extensions are enabled (those using ResolveUserDecorator) Doctrine, on loading, will attempt to load the user, due to this part in ResolveUserDecorator.php:70:

if ($this->auth->check()) {
       call_user_func([$this->wrapped, $this->userSetterMethod], $this->auth->user());
}

Since the user is loaded by Doctrine, Laravel will attempt to load Doctrine, which will attempt to load the user... You get the idea.

How can this be worked around to prevent a loop?

@patrickbrouwers
Copy link
Contributor

Closing this as a PR has been submitted to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants