mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Subquery return me null value every time #5986
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @argoitz on GitHub (Jun 11, 2018).
Im using Symfony 3.0.9 with doctrine 2.5.
This is my composer require section:
I'm trying to transform the SQL query into DQL subquery, but I'm getting a lot of problems.
SQL query:
I try implementing like this, but i can't execute a subquery like "FROM( SELECT...".
Then, this is my DQL transformation:
But now when I execute it, I get null value every time in response.
Please, can anyone help me converting SQL to DQL?
Thank you.