DDC-990: Update QueryBuilder reference doc #1233

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

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

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user dbu:

i had a hard time finding how to limit the number of results for querybuilder.

the reference does not say how to do it
http://www.doctrine-project.org/docs/orm/2.0/en/reference/query-builder.html

google brought up that its called setMaxResult, which works fine:
http://www.doctrine-project.org/api/orm/2.0/doctrine/orm/querybuilder.html

maybe the reference is missing more things from the code...

(btw: calling it just limit would have been very intuitive for sql people ;-)

Originally created by @doctrinebot on GitHub (Jan 17, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user dbu: i had a hard time finding how to limit the number of results for querybuilder. the reference does not say how to do it http://www.doctrine-project.org/docs/orm/2.0/en/reference/query-builder.html google brought up that its called setMaxResult, which works fine: http://www.doctrine-project.org/api/orm/2.0/doctrine/orm/querybuilder.html maybe the reference is missing more things from the code... (btw: calling it just limit would have been very intuitive for sql people ;-)
admin added the Bug label 2026-01-22 13:06:48 +01:00
admin closed this issue 2026-01-22 13:06:49 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jan 23, 2011):

Comment created by @beberlei:

Fixed

@doctrinebot commented on GitHub (Jan 23, 2011): Comment created by @beberlei: Fixed
Author
Owner

@doctrinebot commented on GitHub (Jan 23, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Jan 23, 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#1233