[DDC-2224] Honor convertToDatabaseValueSQL() in DQL query parameters#1339
Conversation
|
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DDC-3625 We use Jira to track the state of pull requests and the versions they got |
There was a problem hiding this comment.
For consistency with the rest of the class, I'd say that _getQueryCacheId directly accesses $this->_parsedTypes instead, no?
There was a problem hiding this comment.
Good point, I'll change this!
[DDC-2224] Honor convertToDatabaseValueSQL() in DQL query parameters
|
👍 |
1 similar comment
|
👍 |
|
Great, thanks for merging! It would be nice to change DDC-2224 from "invalid" to "fixed" also. Any chance this fix can land in the 2.5.0 release? |
|
@BenMorel this will land in |
|
@Ocramius 👍 Thanks! |
This is a follow-up to the abandoned #574 by @mnapoli, that fixes DDC-2224.
At the time, @beberlei closed the PR for the following reason, deemed unfixable:
This PR re-integrates the original fix, and offers a solution to the above issue: take the parameter types into account when checking the local
ParserResultand the query cache.In addition to the test for the DDC-2224 issue, I added a test to ensure that changing a parameter type invalidates the cache.