I have updated to Symfony 5.4.8
and when trying to access the application I get the error:
Attempted to call an undefined method named "getCacheDriver" of class "Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory".
Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "getCacheDriver" of class "Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory"." at C:\wamp64\www\pami54.local\vendor\gedmo\doctrine-extensions\src\Mapping\ExtensionMetadataFactory.php line 104
From ExtensionMetadataFactory
the library gedmo/doctrine-extensions
that function is called, but the truth is that I can't find it at all/vendor/doctrine
that works for me:
The problem is in doctrine/persistence 3
Almost the same thing happens to me, same error, but I have updated to symfony 6.0.8.
For now what I have done to fix it is to downgrade symfony to a previous version.
With the latest gedmo/doctrine-extension update, the getCacheDriver() dependency is removed, although initially the solution found was to set the composer.json to version 3.6.0 of said library.
In my composer.json there was no
doctrine/persistence
package required. So, just runningcomposer update
fixed the issue