0
我需要建立在查詢生成器,查詢留下查詢建設者
SELECT * FROM table1 LEFT JOIN table2 ON (table1.parent_id = table2.id OR table1.id = table2.id) WHERE table2.id IS NULL;
我already've得到
$er->createQueryBuilder('p')
->leftJoin('Bundle2:table2', 'n')
->where('p.parent = n.id')
->andWhere('p.id = n.id');
,但不知道如何添加外部WHERE外部查詢加盟查詢?