function Select::forUpdate

Same name in this branch
  1. 10 core/modules/sqlite/src/Driver/Database/sqlite/Select.php \Drupal\sqlite\Driver\Database\sqlite\Select::forUpdate()
Same name in other branches
  1. 9 core/modules/sqlite/src/Driver/Database/sqlite/Select.php \Drupal\sqlite\Driver\Database\sqlite\Select::forUpdate()
  2. 9 core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::forUpdate()
  3. 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Select.php \Drupal\Core\Database\Driver\sqlite\Select::forUpdate()
  4. 8.9.x core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::forUpdate()
  5. 11.x core/modules/sqlite/src/Driver/Database/sqlite/Select.php \Drupal\sqlite\Driver\Database\sqlite\Select::forUpdate()
  6. 11.x core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::forUpdate()

Overrides SelectInterface::forUpdate

1 method overrides Select::forUpdate()
Select::forUpdate in core/modules/sqlite/src/Driver/Database/sqlite/Select.php
Add FOR UPDATE to the query.

File

core/lib/Drupal/Core/Database/Query/Select.php, line 378

Class

Select
Query builder for SELECT statements.

Namespace

Drupal\Core\Database\Query

Code

public function forUpdate($set = TRUE) {
    if (isset($set)) {
        $this->forUpdate = $set;
    }
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.