[PR #8376] [GH-7486] Bugfix: failing when clearing empty cache is wrong semantics #10954

Closed
opened 2026-01-22 16:09:12 +01:00 by admin · 0 comments
Owner

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

**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
admin added the pull-request label 2026-01-22 16:09:12 +01:00
admin closed this issue 2026-01-22 16:09:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10954