I can't find a proper way to use booleans in where statements.
This failes:
$query->where('My_Boolean', 'true');
The filter query becomes: ... My_Boolean eq 'true' ..., but it has to be ... ... My_Boolean eq true ....
I can sometimes make it work with:
$query->where('My_Boolean eq true');
But the filter query becomes: ... My_Boolean eq true eq null.... It does not always work and I guess it shouldn't.
Hi.
I can't find a proper way to use booleans in where statements.
This failes:
$query->where('My_Boolean', 'true');
The filter query becomes:... My_Boolean eq 'true' ...
, but it has to be ...... My_Boolean eq true ...
.I can sometimes make it work with:
$query->where('My_Boolean eq true');
But the filter query becomes:... My_Boolean eq true eq null...
. It does not always work and I guess it shouldn't.