diff --git a/lib/Doctrine/DBAL/Connection.php b/lib/Doctrine/DBAL/Connection.php index 4deb8ebf4ad..1a7769220f9 100644 --- a/lib/Doctrine/DBAL/Connection.php +++ b/lib/Doctrine/DBAL/Connection.php @@ -142,9 +142,9 @@ class Connection implements DriverConnection /** * If nested transactions should use savepoints. * - * @var integer + * @var boolean */ - private $_nestTransactionsWithSavepoints; + private $_nestTransactionsWithSavepoints = false; /** * The parameters used during creation of the Connection instance. @@ -1130,7 +1130,7 @@ public function setNestTransactionsWithSavepoints($nestTransactionsWithSavepoint throw ConnectionException::savepointsNotSupported(); } - $this->_nestTransactionsWithSavepoints = $nestTransactionsWithSavepoints; + $this->_nestTransactionsWithSavepoints = (bool) $nestTransactionsWithSavepoints; } /**