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

EM binding to debug panel fails after EM reset #275

Closed
fmasa opened this issue Jun 13, 2016 · 5 comments
Closed

EM binding to debug panel fails after EM reset #275

fmasa opened this issue Jun 13, 2016 · 5 comments
Labels
Milestone

Comments

@fmasa
Copy link

fmasa commented Jun 13, 2016

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.

@vhenzl
Copy link

vhenzl commented Jul 27, 2016

I have the same problem. It happens after rollback performed by $entityManager->transactional().

@FilipLukac
Copy link

FilipLukac commented Nov 2, 2016

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

@fprochazka fprochazka added the bug label May 15, 2017
@fprochazka fprochazka added this to the v3.1 milestone May 15, 2017
@fprochazka
Copy link
Member

fprochazka commented May 25, 2017

Note to self: The exception is desired, there should be new instance of the panel for new instance of EntityManager.

@fprochazka
Copy link
Member

Conclusion: I have to split the panel into at least two panels

  • one will render queries
  • one will render EM exceptions in panel

@fprochazka
Copy link
Member

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)

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

No branches or pull requests

4 participants