mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3259: Second level & UnitOfWork inconsistencies #4032
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Aug 19, 2014).
Originally assigned to: @lcobucci on GitHub.
Jira issue originally created by user goetas:
Hi!
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())$className: contains the class name$data: contains the raw data (the row coming from the database)Enabling the second level cache,
DefaultQueryCache::getcalls thecreateEntitymethod passing a$datathat contains object entities and some raw data (https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Cache/DefaultQueryCache.php#L155).I think that
DefaultQueryCacheshould not introduce a variant of$dataand should create a compatible version of$data.@doctrinebot commented on GitHub (Aug 19, 2014):
Comment created by @ocramius:
[~goetas] do you have any example of where this may be happening?
@doctrinebot commented on GitHub (Aug 19, 2014):
Comment created by goetas:
https://github.com/doctrine/doctrine2/pull/1114
This is the same branch of https://github.com/doctrine/doctrine2/pull/1113, plus this commit (
bfbbb9123f) that simply involves the second level cache too.Travis should fail soon.
@doctrinebot commented on GitHub (Aug 19, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1114] was closed:
https://github.com/doctrine/doctrine2/pull/1114
@doctrinebot commented on GitHub (Aug 19, 2014):
Comment created by goetas:
Here the failure https://travis-ci.org/doctrine/doctrine2/jobs/32972996#L402
@doctrinebot commented on GitHub (Oct 22, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1113] was assigned:
https://github.com/doctrine/doctrine2/pull/1113
@doctrinebot commented on GitHub (Jan 18, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1113] was closed:
https://github.com/doctrine/doctrine2/pull/1113
@doctrinebot commented on GitHub (Jan 24, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1113] was labeled:
https://github.com/doctrine/doctrine2/pull/1113
@doctrinebot commented on GitHub (Jan 24, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1113] was labeled:
https://github.com/doctrine/doctrine2/pull/1113
@doctrinebot commented on GitHub (Feb 16, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1113] was closed:
https://github.com/doctrine/doctrine2/pull/1113
@lcobucci commented on GitHub (Jan 20, 2017):
Looks like it was fixed on #1113 (which was merged manually).