Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- ObjectA(id=1),
- ObjectB(id=1),
- ObjectA2(id=2),
- null
- ]
- $queryBuilder
- ->select('ta')
- ->addSelect('tb')
- ->innerJoin(TableB::class, 'tableB', Join::WITH,
- 'ta.id = tb.tableAId')
- ->getQuery()->getResult();
- [
- [ObjectA(id=1), ObjectB(id=1)],
- [ObjectA(id=2)]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement