Skip to content
Permalink
Browse files

Set DboSource::$_connection to null on disconnect

  • Loading branch information...
graemetait committed Sep 21, 2015
1 parent e176e2f commit 8fae10a971e982771e59dc60811b7cc5add57d1e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/DboSource.php
@@ -284,7 +284,7 @@ public function disconnect() {
if ($this->_result instanceof PDOStatement) {
$this->_result->closeCursor();
}
unset($this->_connection);
$this->_connection = null;
$this->connected = false;
return true;
}

0 comments on commit 8fae10a

Please sign in to comment.
You can’t perform that action at this time.