mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Default query cache using wrong object #5143
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 @lcobucci on GitHub (Jun 5, 2016).
Originally assigned to: @Ocramius on GitHub.
On the fix of PHP 7 bug,
ReflectionProperty#getValue()is now raising aNoticewhen accessing an undefined property. That change revealed a false positive on ORM tests!As you can see here the
DefaultQueryCacheis always trying to fetch data from$entityeven when the association is not with that object (the test is failing becauseDefaultQueryCacheis trying to get thecountryfrom theCityinstead of theState).How to reproduce: execute the test suite while running PHP 7.0.7
@Ocramius commented on GitHub (Jun 5, 2016):
@lcobucci can you take a look at #5856? It fixes the issue, but also disables some of the SLC caching happening during hydration of multi-level DQL fetch-joins.
@lcobucci commented on GitHub (Jan 7, 2017):
@Ocramius I totally forgot to do a follow up on this issue here.
I'd say it's fixed, let's close it?