This commit is contained in:
parent
92a6699e9a
commit
471a0a0005
@ -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);
|
||||
}
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user