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

Closed
doctrinebot opened this Issue Nov 29, 2010 · 2 comments

2 participants

@doctrinebot

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.

@doctrinebot

Comment created by @beberlei:

Implemented

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-RC1 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment