The following docblock at [QueryInterface::condition](https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...) is incorrect:
$entity_ids = \Drupal::entityQuery($entity_type)
->condition('greetings', 'merhaba', '=', 'tr')
->condition('greetings.value', 'siema', '=', 'pl')
->execute();
$entity_ids = $query->execute();
The last line is not needed.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix_code_example_in-2776779-2.patch | 545 bytes | juampynr |
Comments
Comment #2
juampynr commentedHere is a patch that removes the line.
Comment #3
pguillard commentedI guess this one #2777493: Incorrect example is the same
Comment #4
pguillard commentedRTBC for this one.
Comment #5
xjmComment #6
alexpottCommitted and pushed 3fa22c4bf0394bf03cd3af932042356501144537 to 8.3.x and 5a20868 to 8.2.x and 2fe0871 to 8.1.x. Thanks!