Closed
Description
The following mistakes occur occasionally,and I can't find the solution
Call to a member function resolveAssociationEntries() on boolean {"detail":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function resolveAssociationEntries() on boolean at /www/vendor/doctrine/orm/lib/Doctrine/ORM/Cache/DefaultQueryCache.php:140)"}
version: doctrine/orm V2.6.0
in DefaultQueryCache.php at line 140
$entries = $region->getMultiple($cacheKeys);
// @TODO - move to cache hydration component
foreach ($cacheEntry->result as $index => $entry) {
$entityEntry = is_array($entries) && array_key_exists($index, $entries) ? $entries[$index] : null;
if ($entityEntry === null) {
if ($this->cacheLogger !== null) {
$this->cacheLogger->entityCacheMiss($regionName, $cacheKeys->identifiers[$index]);
}
return null;
}
I think the parameter $entityEntry sometimes will be false , then occur the mistakes.
change if ($entityEntry === null)
to if ($entityEntry === null || $entityEntry === false )
.
Is this a good solution ?
I need your help. Thank you very much.