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/D… #5995

Open
opened 2026-01-22 15:24:17 +01:00 by admin · 0 comments
Owner

Originally created by @mingmingxianseng on GitHub (Jun 19, 2018).

Originally assigned to: @lcobucci on GitHub.

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.

Originally created by @mingmingxianseng on GitHub (Jun 19, 2018). Originally assigned to: @lcobucci on GitHub. **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 ```php $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.
admin added the Bug label 2026-01-22 15:24:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5995