我有下一个SQL查询,该查询总共返回348。
SELECT * FROM `hex_articles_tree` tree
LEFT JOIN hex_fields_i18n i18n
ON i18n.tree_label_id = tree.id
WHERE i18n.tree_label_id IS NOT NULL
但是我正努力学习理论,在下一个查询中我得到了122个结果
return $this->createQueryBuilder('tree')
->leftJoin('App\Entity\HexFieldsI18n', 'i18n', 'WITH','i18n.tree_label = tree.id')
->andWhere('i18n.tree_label IS NOT NULL')
->getQuery()->getResult();
有没有标志?