From 9281630ed7f0aed05212de1a998c155668452c87 Mon Sep 17 00:00:00 2001 From: romanb Date: Tue, 11 Dec 2007 15:55:45 +0000 Subject: [PATCH] Fixed #664. --- lib/Doctrine/Manager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Doctrine/Manager.php b/lib/Doctrine/Manager.php index cf0a1c7b0..892d2fd94 100644 --- a/lib/Doctrine/Manager.php +++ b/lib/Doctrine/Manager.php @@ -287,6 +287,9 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera if ($name !== null) { $name = (string) $name; if (isset($this->_connections[$name])) { + if ($setCurrent) { + $this->_currIndex = $name; + } return $this->_connections[$name]; } } else {