Skip to content
Permalink
Browse files

Add Connnection::disableSavePoints().

  • Loading branch information...
ADmad committed Nov 1, 2018
1 parent 5fe3e0c commit f50a5ac5110ba20b4f6d9d093a392d8af12306da
@@ -598,6 +598,19 @@ public function enableSavePoints($enable)
return $this;
}
/**
* Disables the usage of savepoints.
*
* @param bool $enable Whether or not save points should be used.

Check failure on line 604 in src/Database/Connection.php

Stickler CI / stickler-ci

src/Database/Connection.php#L604

Superfluous parameter comment
* @return $this
*/
public function disableSavePoints()
{
$this->_useSavePoints = false;
return $this;
}
/**
* Returns whether this connection is using savepoints for nested transactions
*
@@ -27,6 +27,7 @@
* @method \Cake\Database\StatementInterface execute($query, $params = [], array $types = [])
* @method $this enableQueryLogging($value)
* @method $this disableQueryLogging()
* @method $this disableSavePoints()
* @method bool isQueryLoggingEnabled()
* @method string quote($value, $type = null)
*/
@@ -62,7 +62,7 @@ public function setUp()
public function tearDown()
{
Log::reset();
$this->connection->enableSavePoints(false);
$this->connection->disableSavePoints();
$this->connection->setLogger(null);
unset($this->connection);
parent::tearDown();

0 comments on commit f50a5ac

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