Answer the question
In order to leave comments, you need to log in
PhpStorm complains about using Query Builder (Doctrine) in foreach. How to be?
Am I making the right request?
Some nestings (keys) in the array cannot come
PhpStorm swears at the use of Query Builder in foreach
In the current method I use several queryBuilders
Answer the question
In order to leave comments, you need to log in
$queryBuilder = $conn->createQueryBuilder();
He suggests moving this code outside of the foreach, as it has nothing to do with the variables in the loop. Reduce code to:$conn->createQueryBuilder()->select(...);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question