Jira issue originally created by user goetas:
I have a lot of entities with entity associations as keys and I'm trying to use second level cache.
Looking at the method: UnitOfWork::createEntity($className, array $data, &$hints = array())
UnitOfWork::createEntity($className, array $data, &$hints = array())
Enabling the second level cache, DefaultQueryCache::get calls the createEntity method passing a $data that contains object entities and some raw data (https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Cache/DefaultQueryCache.php#L155).
I think that DefaultQueryCache should not introduce a variant of $data and should create a compatible version of $data.
Comment created by @ocramius:
[~goetas] do you have any example of where this may be happening?
Comment created by goetas:
This is the same branch of #1113, plus this commit (goetas@bfbbb91) that simply involves the second level cache too.
Travis should fail soon.
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1114] was closed:
Here the failure https://travis-ci.org/doctrine/doctrine2/jobs/32972996#L402
A related Github Pull-Request [GH-1113] was assigned:
A related Github Pull-Request [GH-1113] was closed:
A related Github Pull-Request [GH-1113] was labeled: