Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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.
This is already fixed in 1.2.0-BETA3