-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added warning about query cache in relation to parameters #10276
Conversation
This warning indeed feels a bit redundant, given that the paragraph above it already explains how parameters should be dealt with. Maybe we can rephrase the existing paragraph instead of adding that warning? |
Hi @derrabus, Instead of the paragraph "Parameters for the query should be set..." "For the filter to correctly function the following rules must be followed, failure to do so will lead to unexpected results from the query cache.
The |
Yeah, something like that. Can you adjust the PR? |
Co-authored-by: Claudio Zizza <[email protected]>
Co-authored-by: Claudio Zizza <[email protected]>
Thank you @antman3351 |
* 2.15.x: Support of NOT expression from doctrine/collections ^2.1 (doctrine#10234) Fix Psalm errors with Collection 2.1.2 (doctrine#10343) Added warning about query cache in relation to parameters (doctrine#10276)
Hi,
It's probably not worded the best but I felt the need to add a warning in the docs about the query cache to hopefully help others not make the same mistake I did.
Although the docs do state: "Parameters for the query should be set on the filter object by
SQLFilter#setParameter()
. Only parameters set via this function can be used in filters" I think it's not quite clear why and if developing with the query cache off can lead to hard to find bugs later on.