mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #8376] [GH-7486] Bugfix: failing when clearing empty cache is wrong semantics #10954
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?
Original Pull Request: https://github.com/doctrine/orm/pull/8376
State: closed
Merged: Yes
When you call clear cache on result, query, metadata caches, then clearing an empty cache is also semantically clearing the cache. As such it should not fail with an error as it currently does. This could be considered a BC break, but this behavior is completly bogus, so I consider it a bug to be fixed.
Fixes #7486