The thing is, DQL supports booleans without parameters so one would expect this to work. This behavior is at least strange and unexpected.