Closed that-guy-iain closed 3 weeks ago
When you use false boolean value in the set of the querybuilder it doesn't work as expected.
$queryBuilder = $this->entityRepository->createQueryBuilder('t'); $queryBuilder->update(TaxType::class, 't')->set('t.default', false); $queryBuilder->getQuery()->execute();
It causes the following error message
Warning: Attempt to read property "type" on null in vendor/doctrine/orm/src/Query/Parser.php line 2928
but it works if you put in 'false'
'false'
Create an entity with a boolean value and then try to set it using the query builder with a boolean false.
false
For it to know that false is a boolean value and value for the boolean value or to return an Syntax error instead of trying to access full.
Fixed, thanks!
Bug Report
Summary
When you use false boolean value in the set of the querybuilder it doesn't work as expected.
Current behavior
It causes the following error message
Warning: Attempt to read property "type" on null in vendor/doctrine/orm/src/Query/Parser.php line 2928
but it works if you put in
'false'
How to reproduce
Create an entity with a boolean value and then try to set it using the query builder with a boolean
false
.Expected behavior
For it to know that false is a boolean value and value for the boolean value or to return an Syntax error instead of trying to access full.