Doctrine2 DBAL Exists query
问题 I would like to ask for your help with Doctrine2 DBAL query built with QueryBuilder . I'm used to ORM, but I think it's an overkill for such query which is being called in a listener. I need a query with SELECT EXISTS and I don't know how I can construct it using DBAL QueryBuilder . I have a subquery already created: $subQuery = $connection->createQueryBuilder(); $subQuery ->select('o.id') ->from('order', 'o') ->leftJoin('o', 'payment', 'p') ->where($subQuery->expr()->isNull('p.id')) ; I