mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Doctrine\Persistence\Mapping\AbstractClassMetadataFactory::setCacheDriver is deprecated. Use setCache() with a PSR-6 cache instead. #6724
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fkolcu on GitHub (May 17, 2021).
3a194ad699/lib/Doctrine/ORM/EntityManager.php (L169)After updating version of "doctrine/orm" it's started to give error as in the title.
After checking which method/class is using the deprecated method, I found that it is being used in constructor of EntityManager.
Details of error is like the following:
Doctrine\Persistence\Mapping\AbstractClassMetadataFactory::setCacheDriver is deprecated. Use setCache() with a PSR-6 cache instead. on line 80 in file ../vendor/doctrine/persistence/lib/Doctrine/Persistence/Mapping/AbstractClassMetadataFactory.php.
@beberlei commented on GitHub (May 17, 2021):
We will deal with deprecations in time, this one is being worked on already for next release.