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.

CommentFileSizeAuthor
#2 fix_code_example_in-2776779-2.patch545 bytesjuampynr

Comments

juampynr created an issue. See original summary.

juampynr’s picture

Status: Active » Needs review
StatusFileSize
new545 bytes

Here is a patch that removes the line.

pguillard’s picture

I guess this one #2777493: Incorrect example is the same

pguillard’s picture

Status: Needs review » Reviewed & tested by the community

RTBC for this one.

xjm’s picture

Version: 8.2.x-dev » 8.1.x-dev
Component: entity system » documentation
Issue tags: +rc eligible
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 3fa22c4bf0394bf03cd3af932042356501144537 to 8.3.x and 5a20868 to 8.2.x and 2fe0871 to 8.1.x. Thanks!

  • alexpott committed 3fa22c4 on 8.3.x
    Issue #2776779 by juampynr: Fix code example in QueryInterface::...

  • alexpott committed 5a20868 on 8.2.x
    Issue #2776779 by juampynr: Fix code example in QueryInterface::...

  • alexpott committed 2fe0871 on 8.1.x
    Issue #2776779 by juampynr: Fix code example in QueryInterface::...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.