[PR #1554] Fix a documentation error in the EntityManagerInterface#transactional() return value #9615

Closed
opened 2026-01-22 16:04:52 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1554

State: closed
Merged: Yes


This is a fix for #1462 @DHager

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 just a natural behaviour, isn't it?

**Original Pull Request:** https://github.com/doctrine/orm/pull/1554 **State:** closed **Merged:** Yes --- This is a fix for #1462 @DHager 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 just a natural behaviour, isn't it?
admin added the pull-request label 2026-01-22 16:04:52 +01:00
admin closed this issue 2026-01-22 16:04:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9615