-
Notifications
You must be signed in to change notification settings - Fork 101
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
EM binding to debug panel fails after EM reset #275
Comments
I have the same problem. It happens after rollback performed by $entityManager->transactional(). |
I have same issue with deployment when running migrations, but only under Nette 2.4, When I'm running under Nette 2.3 - everything is fine |
Note to self: The exception is desired, there should be new instance of the panel for new instance of EntityManager. |
Conclusion: I have to split the panel into at least two panels
|
The cache stats panel now shows only data from the last attached EntityManager. Solving this would require spliting the panel even more. This will be solved as part of #238 (comment) |
Kdyby/Doctrine removes Entity Manager service from DIC after entity manager reset (via. ManagerRegistry::reset. When I want to use entity manager again, service factory tries to bind new Entity Manager to debug bar which ouputs in:
Kdyby\Doctrine\InvalidStateException: Doctrine Panel is already bound to entity manager.
The text was updated successfully, but these errors were encountered: