Good day to everyone!
some help needed with fetching result out of EntityFieldQuery. Have a unique value of the field. I try to get 'nid' of node by value of the field with help of EntityFieldQuery. my problem is that i dont know how to fetch result in a right way to get just 'nid'. then knowing nid i will be able to load the node and do some work with it.
$query = new EntityFieldQuery; $entities = $query->entityCondition('entity_type', 'node') ->entityCondition('bundle', 'order') ->fieldCondition('field_reference_number', 'value', $titleref) ->execute(); $result= $query->execute(); drupal_set_message('nid: ' .print_r($result, true));
my result is:
nid: Array ( [node] => Array (  => stdClass Object ( [nid] => 2250 [vid] => 2252 [type] => order ) ) )
how to fetch it corectly to get 'nid' out of it?
Thanks for your time