I have a DQL that is executed multiple times with different parameters.
On the second (and subsequent) run, there is a difference between the
results returned by getArrayResult() and execute() - it seems that there is
some kind of caching in place so that the result of execute is the same
every time (despite the parameters being different).
I have checked that the caching part of AbstractQuery:execute is not
does not hit.
Can anyone explain?
The code I've used to demonstrate the issue is:
That displays e.g. the following:
As you see the second line of each segment remains the same, whereas the
first line (array hydration) is correct.
Thanks in advance :)