I have a node type which has a field that can contain an unlimited amount of images.
I want to retrieve a set of entities, but only entities that contain at least one image.
So far this is my query:
$result = $query->entityCondition('entity_type', 'node') ->entityCondition('bundle', 'reference') ->propertyCondition('promote', 1) ->propertyOrderBy('created', 'DESC') ->pager(12) ->execute();
How should I use the extra fieldCondition to indicate I only want nodes with at least 1 value for field_images?