Closed (works as designed)
Project:
Drupal core
Version:
8.4.3
Component:
entity system
Priority:
Major
Category:
Support request
Assigned:
Issue tags:
Reporter:
Created:
3 Jan 2018 at 22:19 UTC
Updated:
14 Jan 2018 at 15:53 UTC
Jump to comment: Most recent
Comments
Comment #2
rajanvalecha12 commentedProvide more info on this.
It would be better if you provide the code snippet!
Comment #3
swarup.masurkar commented$latestNode = \Drupal::entityQuery('node')
->condition('type', 'article')
->condition('status', 1)
->condition('nid', '5265', '!=')
->condition('field_one', array('2'), 'IN')
->condition('field_two', array('56'), 'NOT IN')
->sort('changed', 'ASC')
->range(0, 1)
->execute();
the IN and NOT IN conditions are not working properly together.
Comment #4
snehi commentedI think this is not the best place to put questions over here.
Please post your questions in Drupal forms or on IRC.