mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
cascade refresh on entity that is managed but not saved yet #7102
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 @oleg-andreyev on GitHub (Feb 6, 2023).
Bug Report
Summary
entityIdentifiersdoes not have record for it,Current behavior
How to reproduce
Expected behavior
If entity is scheduled for insert do nothing in doRefresh
@giosh94mhz commented on GitHub (Jan 14, 2025):
Bug report
I can reproduce this same issue.
Can be reproduced also by doing this on step 3: add B to A, don't call persist
In this case the error became the following (trace edited):
Hint for a solution (?)
In my opinion, the issue is at https://github.com/doctrine/orm/blob/3.4.x/src/UnitOfWork.php#L2042, since the code is: