That check is totally wrong... Why? If we have a stored value that PHP considere FALSE, a NotFoundException will be raised each time... Best would be to check for true FALSE value (strict check):
if ($data === FALSE) {
throw new NotFoundException();
}
@Ocramius
In the DBAL storage (find method), a check is made on SQL query result as follow:
That check is totally wrong... Why? If we have a stored value that PHP considere
FALSE
, a NotFoundException will be raised each time... Best would be to check for trueFALSE
value (strict check):For our use case, we have the following storage: