class NoUniqueFieldException

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/NoUniqueFieldException.php \Drupal\Core\Database\Query\NoUniqueFieldException
  2. 8.9.x core/lib/Drupal/Core/Database/Query/NoUniqueFieldException.php \Drupal\Core\Database\Query\NoUniqueFieldException
  3. 10 core/lib/Drupal/Core/Database/Query/NoUniqueFieldException.php \Drupal\Core\Database\Query\NoUniqueFieldException

Exception thrown if an upsert query doesn't specify a unique field.

Hierarchy

Expanded class hierarchy of NoUniqueFieldException

File

core/lib/Drupal/Core/Database/Query/NoUniqueFieldException.php, line 10

Namespace

Drupal\Core\Database\Query
View source
class NoUniqueFieldException extends \InvalidArgumentException implements DatabaseException {

}

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