DDC-1892: [GH-383] Doctrine\ORM\EntityManager::transactional() - return original value returned by user's function #2387

Closed
opened 2026-01-22 13:51:23 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Jun 25, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of Crozin:

Url: https://github.com/doctrine/doctrine2/pull/383

Message:

Current behaviour of Doctrine\ORM\EntityManager::transactional() causes some troubles when we want to return a value that is considered FALSE (e.g. 0, empty string or NULL). Also returning TRUE makes no sense if errors are reported using exceptions.

Originally created by @doctrinebot on GitHub (Jun 25, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: This issue is created automatically through a Github pull request on behalf of Crozin: Url: https://github.com/doctrine/doctrine2/pull/383 Message: Current behaviour of Doctrine\ORM\EntityManager::transactional() causes some troubles when we want to return a value that is considered FALSE (e.g. 0, empty string or NULL). Also returning TRUE makes no sense if errors are reported using exceptions.
admin added the Bug label 2026-01-22 13:51:23 +01:00
admin closed this issue 2026-01-22 13:51:24 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 4, 2012):

Issue was closed with resolution "Won't Fix"

@doctrinebot commented on GitHub (Jul 4, 2012): Issue was closed with resolution "Won't Fix"
Author
Owner

@doctrinebot commented on GitHub (Jul 4, 2012):

Comment created by @beberlei:

A related Github Pull-Request [GH-383] was closed
https://github.com/doctrine/doctrine2/pull/383

@doctrinebot commented on GitHub (Jul 4, 2012): Comment created by @beberlei: A related Github Pull-Request [GH-383] was closed https://github.com/doctrine/doctrine2/pull/383
Author
Owner

@doctrinebot commented on GitHub (Oct 1, 2013):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-383] was closed:
https://github.com/doctrine/dbal/pull/383

@doctrinebot commented on GitHub (Oct 1, 2013): Comment created by @doctrinebot: A related Github Pull-Request [GH-383] was closed: https://github.com/doctrine/dbal/pull/383
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2387