[PR #10276] Added warning about query cache in relation to parameters #12236

Closed
opened 2026-01-22 16:13:24 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/10276

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10276 **State:** closed **Merged:** Yes --- 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.
admin added the pull-request label 2026-01-22 16:13:24 +01:00
admin closed this issue 2026-01-22 16:13:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12236