I did not find how to query (with DQL) a result of a first DQL query.
I have a first DQL query like:
$query = $this->createQueryBuilder('q')
$query->[methods()]
$query->->getQuery()->getResult();
and from this query result I would like to do another DQL query. But the method getResult returns an array.
The perfect solution to get would be to do another DQL query on the result of the first query. Is there any solution for it?
Edit: I am querying in the repository file ("[Entity]Repository.php"). From my first Doctrine query, I am expecting to get a first result. And from this result I would like to perform another select query.
In another terms, I am wondering how I may 'transform' the result of my first query in a 'temporary' table from which I will perform another Doctrine query.