Skip to content

Commit

Permalink
Corrected the spelling of PaginatedResult since PaginatedResults caus…
Browse files Browse the repository at this point in the history
…es confusion.
  • Loading branch information
Bryan Morgan committed Feb 17, 2014
1 parent 418f845 commit 3da9493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/documentation/querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ from the `Activity` class. This will implicitly also retrieve any
records that are subclasses of `Activity`.

{% highlight java %}
PaginatedResults<Activity> results = Query.from(Activity.class).
PaginatedResult<Activity> results = Query.from(Activity.class).
where("user = ?", user).
sortDescending("activityDate").select(0, 10);
{% endhighlight %}
Expand All @@ -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<Article> articles = Query.from(Article.class).
PaginatedResult<Article> articles = Query.from(Article.class).
sortAscending("title").select(0, 10);
List<Article> items = articles.getItems();
{% endhighlight %}
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Article> articles = Query.from(Article.class).
PaginatedResult<Article> 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
Expand Down

0 comments on commit 3da9493

Please sign in to comment.