I have updated my symfony application to 5.1.3. But since then there is a class missing exception on clearing the cache.
In App_KernelDevDebugContainer.php line 1050:
Attempted to load class "MappingDriverChain" from namespace "Doctrine\Common\Persistence\Mapping\Driver".
Did you forget a "use" statement for "Doctrine\Persistence\Mapping\Driver\MappingDriverChain"?
I have checked the cache file and symfony is indeed requesting for this class on the cache. From some other SO post I got the impression that the doctrine structure have changed. I also had a similar issue on all repository class where I had to make this change
Doctrine\Persistence\ManagerRegistry => Doctrine\Common\Persistence\ManagerRegistry
I have seen a similar SO post regarding the same issue, saying updating to the latest version will solve the issue. But in my case that was not successfully.
Is it an issue with the symfony version or some other configuration issue.
And also I have created two DB connections, both are MySQL. Not sure if this have any connections to the issue.
This is my current composer.json & composer.lock