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); }
Please login to continue.