Doctrine\DBAL\Connection::rollbackSavepoint PHP Method

rollbackSavepoint() public method

Rolls back to the given savepoint.
public rollbackSavepoint ( string $savepoint ) : void
$savepoint string The name of the savepoint to rollback to.
return void
    public function rollbackSavepoint($savepoint)
    {
        if (!$this->getDatabasePlatform()->supportsSavepoints()) {
            throw ConnectionException::savepointsNotSupported();
        }
        $this->_conn->exec($this->platform->rollbackSavePoint($savepoint));
    }

Usage Example

示例#1
0
 protected function performRollBack($identifier = NULL)
 {
     if ($identifier === NULL) {
         return $this->conn->rollBack();
     }
     $this->conn->rollbackSavepoint($identifier);
 }
All Usage Examples Of Doctrine\DBAL\Connection::rollbackSavepoint