Fixed #664.
This commit is contained in:
parent
6a958bae47
commit
9281630ed7
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user