andWhere('.id IN (:ids)') ->setParameter('ids', $ids) ; } public function withCalendar() { return $this ->andWhere('.caldavHost IS NOT NULL') ->andWhere('.caldavUsername IS NOT NULL') ->andWhere('.caldavPassword IS NOT NULL') ->andWhere('.caldavCalendarUri IS NOT NULL') ; } }