Skip to content


DDC-899: Add an unobtrusive way to determine if entity manager is closed #5424

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user alex:

There is no way to unobtrusively determine if an entity manager instance has been closed (due to exceptions/errors during a transaction).

Something like the following would come in handy:

class EntityManager {
public function isOpen()
return $this->closed === false;

To determine if the instance is closed or not, this way one could instantiate a new entity manager instance with the same connection and configuration.


Comment created by @beberlei:



Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.