It would be nice if fetch function returns NULL when nothing is found instead of FALSE.
It's breaking change so that's why I'm not creating PR but creating issue instead.
I think it would be usefull becaue then it would be possible to set in result directly to ?TableEntity
for example:
public function getUser($id) : ?UserEntity
{
$result $this->dibi->select('*')
->from('users')
->where('id=%i', $id)
->execute()
->setRowClass(UserEntity::class)
->fetch();
return $result
}
Description
It would be nice if fetch function returns NULL when nothing is found instead of FALSE. It's breaking change so that's why I'm not creating PR but creating issue instead. I think it would be usefull becaue then it would be possible to set in result directly to ?TableEntity
for example: