mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Fetch EAGER with second_level_cache ON ManyToOne association BUG. #5106
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 @BourotBenjamin on GitHub (Apr 19, 2016).
Originally assigned to: @lcobucci on GitHub.
I get
[request] Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Catchable Fatal Error: Object of class Doctrine\ORM\Cache\AssociationCacheEntry could not be converted to string" at /var/www/Youmiam/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php line 2676When I try to get an object for the first time, but it only happens when I get an object with an EAGER association and the problem appears when I installed the second level cache.
If it could help, there is my code :
Association :
On the top of this class :
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="region_quantity"))On the top of the other class :
* @ORM\Cache(usage="NONSTRICT_READ_WRITE", region="region_product"))My config :
Thanks in advance.
@lcobucci commented on GitHub (Jan 19, 2017):
@BourotBenjamin looks like this is a duplicate of #5578 and as mentioned there we weren't able to reproduce it on the latest version of
master.So I'm closing this issue.