Is there a way to run EntityFieldQuery on all fields of a node that reference a user?


1 Answer 1


Can you try rephrasing your question? It is not clear what you are trying to accomplish. Do you want to load all nodes that use the same field to reference a user?

If so, you would use the fieldCondition() method. Something like

->fieldCondition('field_name', 'target_id', $uid)

See https://api.drupal.org/api/drupal/includes!entity.inc/function/EntityFieldQuery%3A%3AfieldCondition/7 for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.