Doctrine orm 在条令2中进行嵌套查询的主页?

Doctrine orm 在条令2中进行嵌套查询的主页?,doctrine-orm,Doctrine Orm,我想用条令2来说明这一点: SELECT *, (SELECT action FROM operations_history WHERE timesheet.id = operations_history.timesheet_id ORDER BY operations_history.created DESC LIMIT 1) as status FROM timesheet; 有什么帮助吗?我想用createQueryBui

我想用条令2来说明这一点:

SELECT *, 
 (SELECT action FROM operations_history
         WHERE timesheet.id = operations_history.timesheet_id
         ORDER BY operations_history.created DESC 
          LIMIT 1) as status 
FROM timesheet; 
有什么帮助吗?我想用
createQueryBuilder()来实现它如果可能的话。谢谢

看。