You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(note the integer identifier passed as string). When entity is loaded directly from database, the value in property "id" is integer. But second time, when the entity is loaded from second level cache, the id property will have string value "123".
Jira issue originally created by user janlanger:
Consider this entity:
The entity is loaded like this:
(note the integer identifier passed as string). When entity is loaded directly from database, the value in property "id" is integer. But second time, when the entity is loaded from second level cache, the id property will have string value "123".
It is caused by this line https://github.com/doctrine/doctrine2/blob/d72ad9cc50208153160edfa9b3bd7a23fbec0cee/lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php#L76 where value in original data is overriden by data from cache key.
This is btw second bug i found caused by this line, the previous is #DDC-3950
The text was updated successfully, but these errors were encountered: