- 🇮🇳India PrabuEla chennai
Hi @DamienMcKenna
The "LIKE" operator may cause the issue with the querring. Have you try with "=" opeartor.
When doing a Drupal::entityQuery() that involves OR operations, the query is built incorrectly and results all records in situations where there should be zero records.
Have an entity type with several optional link fields.
Create example entities with some of these fields filled in.
Create a query using Drupal::entityQuery() that searches each field
$query = \Drupal::entityQuery($entity_type, 'OR');
foreach ($field_names as $field_name) {
$query->condition($field_name, $needle . '%', 'LIKE');
}
}
return $query->execute();
In the situation where the $needle doesn't exist in any of the entities, it will return a list of all entities of that type.
However, if you do separate queries for each of the conditions and combine the results you get different results.
Fix the database system.
n/a
tbd
n/a
tbd
Active
9.5
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Hi @DamienMcKenna
The "LIKE" operator may cause the issue with the querring. Have you try with "=" opeartor.