Same name and namespace in other branches
- 9 core/modules/pgsql/src/Driver/Database/pgsql/Select.php \Drupal\pgsql\Driver\Database\pgsql\Select::orderRandom()
File
- core/
modules/ pgsql/ src/ Driver/ Database/ pgsql/ Select.php, line 27
Class
- Select
- PostgreSQL implementation of \Drupal\Core\Database\Query\Select.
Namespace
Drupal\pgsql\Driver\Database\pgsqlCode
public function orderRandom() {
$alias = $this
->addExpression('RANDOM()', 'random_field');
$this
->orderBy($alias);
return $this;
}