Fixed #664.
This commit is contained in:
parent
6a958bae47
commit
9281630ed7
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue