mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Update query builder does not add 'false' value #7429
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 @hxrriet02 on GitHub (Oct 9, 2024).
Bug Report
When trying to run a query builder update, trying to update a value to
falsewith the set() method, an error occursSummary
Same as the above, using an update/set query builder fails to run when using a false boolean
Current behavior
Throws an error due to the DQL not printing false as
0or"false"The error it throws
A dump of the DQL
How to reproduce
Have a basic entity with a boolean field
Run the following using the given repository
Expected behavior
The boolean should type cast to either a integer 1/0 or a string 'true'/'false'