mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Clarified DataList->limit() docs
This commit is contained in:
parent
317495f8ef
commit
2e6e0de44d
@ -250,8 +250,9 @@ parameter to specify the offset, which allows you to tell the system where to st
|
||||
offset, if not provided as an argument, will default to 0.
|
||||
|
||||
:::php
|
||||
// Return 5 members starting from the 5th result
|
||||
$members = Member::get()->sort('Surname')->limit(5, 4);
|
||||
// Return 10 members with an offset of 4 (starting from the 5th result).
|
||||
// Note that the argument order is different from a MySQL LIMIT clause
|
||||
$members = Member::get()->sort('Surname')->limit(10, 4);
|
||||
|
||||
### Raw SQL options for advanced users
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user