How to load all field values from multiple entities? I have an EFQ that finds the users whose field values match a given array of values:

  $users_query = new EntityFieldQuery();

  $users_query-&gt;entityCondition('entity_type', 'user')
    -&gt;fieldCondition('field_my_field', 'value', $array_of_values);

  $users_query_result = $users_query-&gt;execute();


This will create a list of uid's but I need to know which uid goes with which value in the array.
EFQ will return an entity stub, if you want the fully loaded entities, you can try something like:

// Build query
$query = new EntityFieldQuery();
$query-&gt;entityCondition('entity_type', 'user');
$query-&gt;fieldCondition('field_my_field', 'value', $values);
// Execute for result
$result = $query-&gt;execute();
// If has data
if (!empty($result['user'])) {
  // Load users
  $accounts = entity_load('user', array_keys($result['user']));
  // If using devel
  // dpm($accounts);
}else{
  // No results
}