How to create LEFT JOIN with SELECT subquery using QueryBuilder in Doctrine 2?

前端 未结 1 1529
遥遥无期
遥遥无期 2021-01-05 23:00

I need to limit LEFT JOIN results, so I must use subquery. Could somebody give me advice how can I do it with Doctrine 2?

What I have now is:

  $qb =         


        
相关标签:
1条回答
  • 2021-01-05 23:36

    Unfortunately, This is not possible. Per here:

    https://groups.google.com/forum/#!topic/doctrine-user/0rNbXlD0E_8

    You can do it using IN here:

    Doing a WHERE .. IN subquery in Doctrine 2

    0 讨论(0)
提交回复
热议问题