DDC-1466: Entity ID hash generation improvement in UnitOfWork #1838

Closed
opened 2026-01-22 13:27:45 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Nov 3, 2011).

Originally assigned to: @Majkl578 on GitHub.

Jira issue originally created by user gedrox:

Currently ID hash is generated using implode function with space character. I would like to point out that problems may raise if the ID column values are allowed to contain the space themselves - different objects could return equal ID hash values.

The trivial one-line solution would be to serialize the array instead. Cheaper solution from performance perspective would be escaping the space character for ID values.

Originally created by @doctrinebot on GitHub (Nov 3, 2011). Originally assigned to: @Majkl578 on GitHub. Jira issue originally created by user gedrox: Currently ID hash is generated using implode function with space character. I would like to point out that problems may raise if the ID column values are allowed to contain the space themselves - different objects could return equal ID hash values. The trivial one-line solution would be to serialize the array instead. Cheaper solution from performance perspective would be escaping the space character for ID values.
admin added the ImprovementDuplicate labels 2026-01-22 13:27:45 +01:00
admin closed this issue 2026-01-22 13:27:45 +01:00
Author
Owner

@Majkl578 commented on GitHub (Dec 19, 2017):

#2857

@Majkl578 commented on GitHub (Dec 19, 2017): #2857
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1838