Skip to content
Snippets Groups Projects

Fixed drupal 11 issues

Closed sarwan verma requested to merge issue/module_usage-3485931:3485931-d11-version-of into 1.0.x
2 files
+ 4
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -3,6 +3,7 @@
namespace Drupal\module_usage\Services;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Database;
/**
* The query service, responsible for all database interaction.
@@ -291,7 +292,8 @@ class QueryService {
* Roll back a transaction.
*/
private function rollback() : void {
$this->database->rollBack();
$transaction = $this->database->startTransaction();
$transaction->rollBack();
}
/**
Loading