[PR #9244] Put actual value instead of index inside $originalEntityData #11455

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

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

State: closed
Merged: Yes


This fixes a bug with redundant UPDATE queries, that are executed when some entity uses foreign index of other entity as a primary key. This happens when after inserting related entities with $em->flush() call, you do the second $em->flush() without changing any data inside entities.
Fixes #8217.

**Original Pull Request:** https://github.com/doctrine/orm/pull/9244 **State:** closed **Merged:** Yes --- This fixes a bug with redundant UPDATE queries, that are executed when some entity uses foreign index of other entity as a primary key. This happens when after inserting related entities with $em->flush() call, you do the second $em->flush() without changing any data inside entities. Fixes #8217.
admin added the pull-request label 2026-01-22 16:10:50 +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#11455