DDC-991: Add method "getFirstResult()" that returns null on no result #1235

Closed
opened 2026-01-22 13:06:48 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 18, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

There are some requests for a method on Query that return a first result or null.

Originally created by @doctrinebot on GitHub (Jan 18, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: There are some requests for a method on Query that return a first result or null.
admin closed this issue 2026-01-22 13:06:49 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 31, 2011):

Comment created by @beberlei:

Implemented as "getOneOrNullResult". This way it clearly stands out against getSingleResult() and you cannot mess them up

@doctrinebot commented on GitHub (Mar 31, 2011): Comment created by @beberlei: Implemented as "getOneOrNullResult". This way it clearly stands out against getSingleResult() and you cannot mess them up
Author
Owner

@doctrinebot commented on GitHub (Mar 31, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 31, 2011): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1235