[PR #8288] [GH-8043] Make IdentityFunction handle primary keys when they are part of an association #10896

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

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

State: closed
Merged: No


Fix https://github.com/doctrine/orm/issues/8043

When primary keys are part of an association they won’t be found in fieldMappings but in associationMappings so I refactored IdentityFunction to handle this case.

I’m not completely sure about the logic (especially the reset which I copied from line 61) but it worked for every case I thought of.

**Original Pull Request:** https://github.com/doctrine/orm/pull/8288 **State:** closed **Merged:** No --- Fix https://github.com/doctrine/orm/issues/8043 When primary keys are part of an association they won’t be found in `fieldMappings` but in `associationMappings` so I refactored `IdentityFunction` to handle this case. I’m not completely sure about the logic (especially the `reset` which I copied from line 61) but it worked for every case I thought of.
admin added the pull-request label 2026-01-22 16:09:02 +01:00
admin closed this issue 2026-01-22 16:09:02 +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#10896