Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $qb = $this->createQueryBuilder('c')
- ->select('c', 'c1.id parent_id', 'COUNT(c.id) subcount')
- ->where('c.deleted = 0')
- ->groupBy('c.parent');
- if ($ids) {
- $qb->andWhere($qb->expr()->in('c.parent', $ids));
- }
Advertisement
Add Comment
Please, Sign In to add comment