'Unable to find "Proxies\__CG__\App\MyBundle\Entity\User" entity identifier associated with the UnitOfWork

I updated a Symfony project from version 3.4 to 5.3, and after that, I am getting the following error on some pages:

Unable to find "Proxies\__CG__\App\MyBundle\Entity\User" entity identifier associated with the UnitOfWork at /var/www/html/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php line 43

Maybe Symfony has a way to get more detailed information about the error? Or maybe there is some config to ignore this error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source