Using the query service provider, the getContent always returns a result when it shouldn't.
Tried to query some content type with a where clause on an id parameter. When the id parameter is null or false, the query still returns something.
$this->app['query']->getContent('pages', [
'id' => false,
])
No results
Always returns some "fallback" results
I'll let @rossriley confirm, but my understanding of the intent of design is to match Doctrine, and always return a result set, empty or otherwise, unless it is a single record request.
This behaviour still applies on:
$this->app['query']->getContent('pages', [
'id' => false,
'returnsingle' => true,
]);
Fixed in #7110