mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2783: EntityManager#transactional() support for non-truthy values
#3478
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 @doctrinebot on GitHub (Nov 7, 2013).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user chebba:
The problem:
Any response from transactional callback which is evaluated to *false* (empty array, empty string, 0, null, etc) becomes true
There is the old resolved issue DDC-1336, which describes this behavior.
@returntag is clear now.But this logic is blowing mind and leading to unexpectable results. The expected behavior is just return callback result, i don't see any good use cases for current implementation.
It requires a BC break. Can the deprecation process be started to change this behaviour in few major releases?