From 3da94936d599ce9e26e0a7cd0af3f21a88d9ff6d Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Mon, 17 Feb 2014 14:22:37 -0800 Subject: [PATCH] Corrected the spelling of PaginatedResult since PaginatedResults causes confusion. --- docs/documentation/querying.md | 4 ++-- docs/reference/index.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/documentation/querying.md b/docs/documentation/querying.md index 1baa1d96b..6a7a7174d 100644 --- a/docs/documentation/querying.md +++ b/docs/documentation/querying.md @@ -47,7 +47,7 @@ from the `Activity` class. This will implicitly also retrieve any records that are subclasses of `Activity`. {% highlight java %} -PaginatedResults results = Query.from(Activity.class). +PaginatedResult results = Query.from(Activity.class). where("user = ?", user). sortDescending("activityDate").select(0, 10); {% endhighlight %} @@ -59,7 +59,7 @@ Dari supports limiting the number of results returned using the [first()](javadocs/com/psddev/dari/db/Query.html#first%28%29) methods. {% highlight java %} -PaginatedResults
articles = Query.from(Article.class). +PaginatedResult
articles = Query.from(Article.class). sortAscending("title").select(0, 10); List
items = articles.getItems(); {% endhighlight %} diff --git a/docs/reference/index.md b/docs/reference/index.md index 051cf3057..b89517ac4 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -267,7 +267,7 @@ Using bind variables allows for `IN` style queries by passing a list. Up until this point all the query examples either returned the first result, `first()`, or all results, `select()`. `Query` also supports return a subset of results. - PaginatedResults
articles = Query.from(Article.class). + PaginatedResult
articles = Query.from(Article.class). sortAscending("title").select(0, 10); This will start at offset 0 and return the next 10 instances of `Article`. The result of