Skip to content

Commit

Permalink
Merge pull request #526 from gohiei/master
Browse files Browse the repository at this point in the history
Add close() method in MasterSlaveConnection.php
  • Loading branch information
guilhermeblanco committed Feb 11, 2014
2 parents 5b8f4f0 + 6a8ce0e commit 594e326
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down

0 comments on commit 594e326

Please sign in to comment.