QueryBuilder -> All suppliers, which are not involved in this request


I have the following constellation:

A “Request” can have multiple “SupplierRequests” (OneToMany). A “Supplier” can have multiple “SupplierRequests” (OneToMany).

When I’m searching for suppliers, which are involved in a certain request, this works fine:

$constraints[] = $query->equals("supplierRequests.request", $request);

However, when I’m trying to negate it (to find all supplier, which are NOT involved in this certain request), the following query fails:

$constraints[] = $query->logicalNot($query->equals("supplierRequests.request", $request));

The result length is always 0. I’m using neos/flow 6.3.0.

Do you have a hint for me?

Thank you very much in advance for your help!

Best regards,