Fixed DoctrineAdaper's ANDs and ORs