NodeEntityFieldQuery

Events happening in the community are now at Drupal community events on www.drupal.org.
melquisedec2011's picture

i got this message
Fatal error: Class 'NodeEntityFieldQuery' not found in.......

i was looking the cause but i could not find any documentacion about this, there is a lot about the entity,
i am writing a module in drupal 7 to show a node that contain CCK fields.

anybody has a idea what i need to check in order to solve this message. the other side i was thinking about made my own sql statement in order to get all node data

Comments

There is no NodeEntityFieldQuery class

btmash's picture

Unless, you have extended EntityFieldQuery with your own class called NodeEntityFieldQuery, you should be using EntityFieldQuery. In there, you specify the entity_type as 'node', and bundle as whatever your node_type is and then whatever value you are searching for from your fields.

If you are looking for entities/bundles that have a particular field, you would use something like field_info_field.