mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Error when clearing metadata cache #6728
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 @garak on GitHub (May 24, 2021).
When running command
console doctrine:cache:clear-metadatawith latest Doctrine (doctrine/orm:2.9.0) you get the following error (In MetadataCommand.php line 68):Command was working fine with previous version (doctrine/orm:2.8.X)
@stephanvierkant commented on GitHub (May 24, 2021):
I think it's related to this change:
@dmaicher commented on GitHub (May 24, 2021):
Also see https://github.com/doctrine/orm/issues/8716
I think this is actually an issue on ORM itself. If a deprecated doctrine cache is used and no PSR6 cache then this will fail as it returns null:
ce8da6623f (diff-a955683cd3632858f84b23e2601b44f7ac29f0302687f09a1982fbe830dcf495R65)ping @alcaeus
@ostrolucky commented on GitHub (May 25, 2021):
I guess you could use 2.4 version of the bundle. But indeed this bc break is not the fault of bundle but orm. I'll move the issue to orm repository .