[PR #10687] Make indexBy/orderBy easier to understand for SA #12545

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

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

State: closed
Merged: Yes


Interfaces cannot have properties, and we do not have a concept of sealed classes available to us without installing third party packages. Interfaces can have methods however, which allows us to simplify calling code.
I've been avoiding introducing getters for mapping properties because I do not know what the performance implications are, but here, I think it is sensible to make an exception, given the benefits.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10687 **State:** closed **Merged:** Yes --- Interfaces cannot have properties, and we do not have a concept of sealed classes available to us without installing third party packages. Interfaces can have methods however, which allows us to simplify calling code. I've been avoiding introducing getters for mapping properties because I do not know what the performance implications are, but here, I think it is sensible to make an exception, given the benefits.
admin added the pull-request label 2026-01-22 16:14:23 +01:00
admin closed this issue 2026-01-22 16:14:23 +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#12545