[DDC-1466] Entity ID hash generation improvement in UnitOfWork Created: 03/Nov/11 Updated: 03/Nov/11
|Project:||Doctrine 2 - ORM|
|Affects Version/s:||Git Master|
|Reporter:||Aigars Gedroics||Assignee:||Benjamin Eberlei|
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.