mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Broken lt, gt comparisons with dates #5974
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rmbl on GitHub (May 24, 2018).
BC Break Report
Summary
Query Builder Expressions are not behaving the same as before. We're trying to get all entities before a certain date using
Instead of comparing dates, the query builder seems to think, that it's a calculation which leads to very different results.
Previous behavior
Current behavior
How to reproduce
See code snippet above
@Ocramius commented on GitHub (May 24, 2018):
@rmbl what are the exact generated DQL strings before/after, and is it
2.6.0exactly that broke this?@rmbl commented on GitHub (May 24, 2018):
We're currently using 2.6.1. I'll try it with all relevant versions later. Our customers only noticed the GDPR yesterday (or so it seems).
@Ocramius commented on GitHub (May 24, 2018):
https://youtu.be/G1WomfhjyVM?t=29
@rmbl commented on GitHub (Jun 5, 2018):
I was unable to find a working version. Seems like that was always the behaviour and the previous developer was using the function wrong. No idea how that function ever worked.