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

With symfony 4.4 I'm getting Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager #686

Open
pankujoshi opened this issue Oct 28, 2021 · 1 comment

Comments

@pankujoshi
Copy link

Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of ContainerDvhWaed\EntityManager_9a5be93 given, called in C:\xampp\htdocs\rest_with_oauth\var\cache\dev\ContainerDvhWaed\srcApp_KernelDevDebugContainer.php on line 4362

image

@kadryjanek
Copy link

For SF4 please update FOSOAuthServerBundle to dev-master version. This version is using EntityManagerInterface instead of ObjectManager.

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

3 participants
@kadryjanek @pankujoshi and others