[PR #8831] refac: remove duplicate code from AbstractQuery #11197

Open
opened 2026-01-22 16:10:00 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: No


AbstractQuery::getSingleResult is 90% the same code as AbstractQuery::getOneOrNullResult the only different is that AbstractQuery::getOneOrNullResult catch the NoResultException and return null.

**Original Pull Request:** https://github.com/doctrine/orm/pull/8831 **State:** closed **Merged:** No --- `AbstractQuery::getSingleResult` is 90% the same code as `AbstractQuery::getOneOrNullResult` the only different is that `AbstractQuery::getOneOrNullResult` catch the `NoResultException` and return null.
admin added the pull-request label 2026-01-22 16:10:00 +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#11197