-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce EntityManagerInterface#wrapInTransaction()
#8419
Conversation
d0bcde1
to
08226ca
Compare
transactional()
The v3 you know has been renamed to old-prototype-3.x, and we are working on backporting some of the PRs here: https://github.com/doctrine/orm/projects/4 The difference this time is we are going to regularly merge up 2.x into 3.x . We may backport more, feel free to find the commits in old-prototype-3.x and backport them 👍 |
Is there a BC-break in this PR? If not, please target 2.10.x instead. |
Or even 2.9.x since it is a bugfix |
Thanks for explaining, I'll revert this and target the |
transactional()
@greg0ire I suppose CI is broken on old-prototype, right? |
Yes, it's no longer maintained, it's just a source of commits to port to maintained branches. Why are you targeting it? Does the bug only happen there? |
@greg0ire the bug is fixed only there aa9f11e#diff-09261ffd6eb75f4fda9de6c2fbf156761380cf13687e57a199878630890402c4R232 the previous version (e.g. the whole 2.x orm) returns |
Could you please work on porting the new behavior to 3.x instead? Otherwise it's just more porting work for us in the future |
ah ok, I have just reverted that few h ago. Np. Gimme sec. |
transactional()
It's done, test failures are irrelevant https://github.com/simPod/orm/runs/3093712747. |
I think they relate to doctrine/cache#381 |
Blocked by #8847 and 2 merges up |
Regarding the PR itself: why did non-empty value deserve a special treatment, and why does |
3f5a1af
to
8c7e00b
Compare
Doctrine\ORM\EntityManagerInterface#wrapInTransaction()
EntityManagerInterface#wrapInTransaction()
Please fix the conflict 🙏 Note: this PR kind of backports #6147 |
done
I believe I've seen it multiple times here so initially I only wanted to add test cases for it then I§ve found out it's not implemented 🤷🏾 |
Hence the branch name! |
The extended interface is a BC break. @greg0ire Is this considered as a "smaller" one? |
No, you are right, I didn't spot it. Not sure how to make it BC…
Thanks @simPod ! |
This introduces
Doctrine\ORM\EntityManagerInterface#wrapInTransaction()
so we can return any value from Transaction.