// If the field is trying to query on %delta for a single value field
// then the only supported delta is 0. No other value than 0 makes
// sense. \Drupal\Core\Entity\Query\Sql\Tables::addField() returns 0 as
// the field name for single value fields when querying on their %delta.
if ($field === 0
) { if ($condition['value'
] != 0
) { $conditionContainer->
alwaysFalse();
} continue;
} $condition['real_field'
] =
$field;
static::
translateCondition($condition,
$sql_query,
$tables->
isFieldCaseSensitive($condition['field'
]));
// Add the translated conditions back to the condition container.
if (isset($condition['where'
]) &&
isset($condition['where_args'
])) { $conditionContainer->
where($condition['where'
],
$condition['where_args'
]);
} else { $conditionContainer->
condition($field,
$condition['value'
],
$condition['operator'
]);
} } } }