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.
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 inResolveUserDecorator.php:70
: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?