[PR #6797] Cascading refresh to lazy loaded assocations #10141

Open
opened 2026-01-22 16:06:34 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


Fixes #4252
Closes #1218

Bug description

Refreshing an entity resets toMany (extra) lazy loaded associations to an empty collection before the refresh operation is cascaded to its underlying associations. Meaning objects that should be refreshed stay unrefreshed in the UoW.

Fix

The fix simply cascades the operation to its associations before refreshing the current entity.

**Original Pull Request:** https://github.com/doctrine/orm/pull/6797 **State:** closed **Merged:** No --- Fixes #4252 Closes #1218 ### Bug description Refreshing an entity resets toMany (extra) lazy loaded associations to an empty collection before the refresh operation is cascaded to its underlying associations. Meaning objects that should be refreshed stay unrefreshed in the UoW. ### Fix The fix simply cascades the operation to its associations before refreshing the current entity.
admin added the pull-request label 2026-01-22 16:06:34 +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#10141