mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
in with type boolean fails #5915
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 @michsk on GitHub (Mar 12, 2018).
When using
infor awherequery with a property that has a type ofboolean, the query fails. The results returned are always the rows whiche have a value of0,false. Mysql.When i change it to
eq, and pass a 1 or true as value. Than the results are correct.@Ocramius commented on GitHub (Mar 12, 2018):
What is "invalid result"?
Can this be verified in isolation? See
43c252458b/tests/Doctrine/Tests/ORM/Functional/Ticketfor examples@michsk commented on GitHub (Mar 12, 2018):
"Invalid result", as in it returns the results where the archive value (in the database) is 0 (false). When what we ask for is 1 (true).
I'll look at the link given and come back asap.
@michsk commented on GitHub (Mar 12, 2018):
I read all the readmes and xml files but i cant get it to use my local database.
So the test now fails with a
invalid parameter type: 105@beberlei commented on GitHub (Dec 7, 2020):
I think the problem is that you have to do
$cr->andWhere(Criteria::expr()->in('archive', [true]));