Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.1
-
Component/s: Documentation
-
Security Level: All
-
Labels:None
Description
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 ![]()
Fixed