Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-899

Add an unobtrusive way to determine if entity manager is closed

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-BETA4
    • Fix Version/s: 2.0-RC1
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Implemented

        Show
        Benjamin Eberlei added a comment - Implemented

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Alexander Brouwer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: