mirror of
https://github.com/doctrine/KeyValueStore.git
synced 2026-03-24 08:42:12 +01:00
Unexpected NotFoundException when stored value is seen as FALSE by PHP #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nuxwin on GitHub (Jun 20, 2018).
@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 trueFALSEvalue (strict check):For our use case, we have the following storage:
@nuxwin commented on GitHub (Jun 20, 2018):
Issue is irrelevant.. Full object is stored, not only value...