entityCondition check if a field is not empty My user table has an init field in it, it maybe empty or not.
I want to find all rows that are not empty
I tried

  $query = new EntityFieldQuery();
  $query
    -&gt;entityCondition('entity_type', 'user')
    -&gt;addTag('role_filter');


function mymodule_role_filter_alter(QueryAlterableInterface $query) {
  $query-&gt;innerJoin('users_roles', 'ur', 'users.uid = ur.uid');  
  $query-&gt;innerJoin('role', 'r', 'r.rid = ur.rid');
  $query-&gt;condition('r.name', ['administrator', 'contributor', 'publisher'], 'IN');
  $query-&gt; isNotNull(ur.init); // I ALSO TRIED a != '' condition
}


What I am doing now that works is:

  $results = $query-&gt;execute();

  $users_node_list = entity_load('user', array_keys($results['user']));

  $return_results = array();

  foreach ($users_node_list as $key =&gt; $value) {
        if ($value-&gt;init != ''){


but that is post query.

and read https://www.drupal.org/node/1157006

but this is not working (I don't get any results when I add this)

Ideas?
You can do this by 

$query-&gt;condition('field', '', '&lt;&gt;');


See: https://api.drupal.org/api/drupal/includes%21database%21select.inc/function/SelectQuery%3A%3Acondition/7.x

If this doesn't answer your question you need to. Be more specific.