Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. [
  2. ObjectA(id=1),
  3. ObjectB(id=1),
  4. ObjectA2(id=2),
  5. null
  6. ]
  7.  
  8. $queryBuilder
  9. ->select('ta')
  10. ->addSelect('tb')
  11. ->innerJoin(TableB::class, 'tableB', Join::WITH,
  12. 'ta.id = tb.tableAId')
  13. ->getQuery()->getResult();
  14.  
  15. [
  16. [ObjectA(id=1), ObjectB(id=1)],
  17. [ObjectA(id=2)]
  18. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement