From 6a8ce0e82347cf94a2fef46363678ae162a8a135 Mon Sep 17 00:00:00 2001 From: Chuck Date: Tue, 11 Feb 2014 09:26:54 +0800 Subject: [PATCH] Add close() method in MasterSlaveConnection.php --- .../DBAL/Connections/MasterSlaveConnection.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php b/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php index 5260c1662b2..ff96d3dd4f4 100644 --- a/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php +++ b/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php @@ -281,6 +281,17 @@ public function delete($tableName, array $identifier, array $types = array()) return parent::delete($tableName, $identifier, $types); } + /** + * {@inheritDoc} + */ + public function close() + { + unset($this->connections['master']); + unset($this->connections['slave']); + + parent::close(); + } + /** * {@inheritDoc} */