Skip to content

Commit

Permalink
Merge pull request doctrine#569 from BenMorel/fix-type
Browse files Browse the repository at this point in the history
Fixed type and initialization value of $_nestTransactionsWithSavepoints
  • Loading branch information
guilhermeblanco committed Apr 18, 2014
2 parents e422e5e + 099add2 commit aa2ed45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Doctrine/DBAL/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -1130,7 +1130,7 @@ public function setNestTransactionsWithSavepoints($nestTransactionsWithSavepoint
throw ConnectionException::savepointsNotSupported();
}

$this->_nestTransactionsWithSavepoints = $nestTransactionsWithSavepoints;
$this->_nestTransactionsWithSavepoints = (bool) $nestTransactionsWithSavepoints;
}

/**
Expand Down

0 comments on commit aa2ed45

Please sign in to comment.