1
0
mirror of synced 2024-12-13 22:56:04 +03:00

removing exception when trying to call connection twice

This commit is contained in:
pookey 2007-02-05 14:13:13 +00:00
parent e43e7d2a5c
commit 6f4b4e0e01

View File

@ -197,7 +197,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
if ($name !== null) {
$name = (string) $name;
if (isset($this->connections[$name])) {
throw new Doctrine_Manager_Exception("Connection with $name already exists!");
return $this->connections[$name];
}
} else {
$name = $this->index;