Commit 9281630e authored by romanb's avatar romanb

Fixed #664.

parent 6a958bae
...@@ -287,6 +287,9 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera ...@@ -287,6 +287,9 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
if ($name !== null) { if ($name !== null) {
$name = (string) $name; $name = (string) $name;
if (isset($this->_connections[$name])) { if (isset($this->_connections[$name])) {
if ($setCurrent) {
$this->_currIndex = $name;
}
return $this->_connections[$name]; return $this->_connections[$name];
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment