Entity E have a field reference to Taxonomy T with multi value.
E.field_term.value = [
['target_id' => 1],
['target_id' => 4],
['target_id' => 7],
['target_id' => 9],
];
How to query the list of Entity E which not contain Term T (term_Id = 7). I expect some thing like this:
$query = $this->entityTypeManager->getStorage('node')->getQuery();
$query->condition('field_term.entity:taxonomy_term.tid', '7', 'NOT CONTAIN');
But of course QueryInterface::condition do not accept NOT CONTAIN as operation. Thanks for your help