1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-04-24 16:59:07 +00:00
parent 92a6699e9a
commit 471a0a0005

View File

@ -346,6 +346,14 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
public function closeConnection(Doctrine_Connection $connection)
{
$connection->close();
$key = array_search($connection, $this->connections, true);
if ($key !== false) {
unset($this->connections[$key]);
}
$this->currIndex = key($this->connections[$key]);
unset($connection);
}
/**