[PR #8593] [GH-8592] Deprecated Named (Native) Queries in Metadata/EntityRepository #11080

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

Original Pull Request: https://github.com/doctrine/orm/pull/8593

State: closed
Merged: Yes


Fixes #8592

This deprecates named (native) queries in two locations:

  • In metadata, so that its caught when defined but not used at runtime. Since metadata is cached, the runtime deprecation only happens in the first, uncached request.
  • In EntityRepository, because this would allow regular runtime deprecation to trigger and also shows up in user code (via IDE or Static Analysis).
**Original Pull Request:** https://github.com/doctrine/orm/pull/8593 **State:** closed **Merged:** Yes --- Fixes #8592 This deprecates named (native) queries in two locations: - In metadata, so that its caught when defined but not used at runtime. Since metadata is cached, the runtime deprecation only happens in the first, uncached request. - In EntityRepository, because this would allow regular runtime deprecation to trigger and also shows up in user code (via IDE or Static Analysis).
admin added the pull-request label 2026-01-22 16:09:39 +01:00
admin closed this issue 2026-01-22 16:09:40 +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#11080