Doctrine 1
  1. Doctrine 1
  2. DC-262

Doctrine_Manager::resetInstance() is not restting all properties

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0-BETA3
    • Fix Version/s: 1.2.0-BETA3
    • Component/s: Connection
    • Labels:
      None

      Description

      Calling Doctrine_Manager::resetInstance() resets the instance, however opening a new instance (and new connections) produces an error in the line 221 of Doctrine_Connection:

      $this->getAttribute(Doctrine_Core::ATTR_LISTENER)->onOpen($this);

      Which is because Doctrine_Manager::setDefaultAttributes() has a static variable $init in that function, hence reset instance is not resetting it and new manager instance looses default attributes.

      Proposed fix: move $init variable to the object level.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        This is already fixed in 1.2.0-BETA3

        Show
        Jonathan H. Wage added a comment - This is already fixed in 1.2.0-BETA3

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Juozas Kaziukenas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: