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

Open
doctrinebot opened this Issue Nov 3, 2011 · 0 comments

2 participants

@doctrinebot

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.

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment