Doctrine orm 在条令2中进行嵌套查询的主页?
我想用条令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
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()来实现它代码>如果可能的话。谢谢 看。