Commit 471a0a00 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 92a6699e
......@@ -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);
}
/**
......
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