mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #5554] Treat boolean as string in Expr\Comparison #9643
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?
Original Pull Request: https://github.com/doctrine/orm/pull/5554
State: closed
Merged: No
Hi,
I was getting an error when I try to use comparison with boolean false.
Here my issue: when you are calling
$queryBuilder->set('o.enabled', false)then the result iso.enabled =and then you have an SQL exception.This PR allow to use boolean for comparison.
For example, you can now use
->set('o.enabled', false)instead of->set('o.enabled', 'false')The previous exemple will give
o.enabled = false.What do you think of it ?