DDC-3995: [GH-1554] Fix a documentation error in the EntityManagerInterface#transactional() return value #4879

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

Originally created by @doctrinebot on GitHub (Nov 12, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

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

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

Message:

This is a fix for #1462

By the documentation

For historical reasons, EntityManager#transactional($func) will return false whenever the return value of $func is loosely false. Some examples of this include array(), "0", "", 0, and null.

No! It's ``true'' !
Returning false whenever a user function returns false is jus a natural behaviour, isn't it?

Originally created by @doctrinebot on GitHub (Nov 12, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of tai2: Url: https://github.com/doctrine/doctrine2/pull/1554 Message: This is a fix for #1462 By the documentation > For historical reasons, EntityManager#transactional($func) will return false whenever the return value of $func is loosely false. Some examples of this include array(), "0", "", 0, and null. No! It's ``true'' ! Returning false whenever a user function returns false is jus a natural behaviour, isn't it?
admin added the Documentation label 2026-01-22 14:51:20 +01:00
admin closed this issue 2026-01-22 14:51:23 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 13, 2015):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (Nov 13, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1554] was assigned: https://github.com/doctrine/doctrine2/pull/1554
Author
Owner

@doctrinebot commented on GitHub (Nov 13, 2015):

Comment created by @doctrinebot:

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

@doctrinebot commented on GitHub (Nov 13, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1554] was merged: https://github.com/doctrine/doctrine2/pull/1554
Author
Owner

@doctrinebot commented on GitHub (Nov 13, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 13, 2015): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4879