I am trying to build a query that finds all nodes of a custom type where one of the fields is a user Entity Reference. I am trying to use EntityFieldQuery but just as open to db_select(). The following is just an example of one of the queries I have tried.
$query = new EntityFieldQuery(); $query ->entityCondition('entity_type', 'node', '=') ->propertyCondition('type', 'custom_node', '=') ->fieldCondition('field_marketer', 'value', $user->uid, '='); $entities = $query->execute();
Thanks in advance for any help.