mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #8288] [GH-8043] Make IdentityFunction handle primary keys when they are part of an association #10896
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?
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
fieldMappingsbut inassociationMappingsso I refactoredIdentityFunctionto handle this case.I’m not completely sure about the logic (especially the
resetwhich I copied from line 61) but it worked for every case I thought of.