Connection::startTransaction

public Connection::startTransaction($name = '')

Returns a new DatabaseTransaction object on this connection.

Parameters

string $name: (optional) The name of the savepoint.

Return value

\Drupal\Core\Database\Transaction A Transaction object.

See also

\Drupal\Core\Database\Transaction

File

core/lib/Drupal/Core/Database/Connection.php, line 1043

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function startTransaction($name = '') {
  $class = $this->getDriverClass('Transaction');
  return new $class($this, $name);
}
doc_Drupal
2016-10-29 08:56:03
Comments
Leave a Comment

Please login to continue.