From 23cc3ea4bc07bbc2ace284e68d91b7715d65e46c Mon Sep 17 00:00:00 2001 From: trsteel88 Date: Tue, 23 Jul 2013 12:30:33 +1000 Subject: [PATCH] Update working-with-associations.rst Always use the constant for sorting. If you use 'asc' it will not work. --- docs/en/reference/working-with-associations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/working-with-associations.rst b/docs/en/reference/working-with-associations.rst index 0efba84f2..b65773391 100644 --- a/docs/en/reference/working-with-associations.rst +++ b/docs/en/reference/working-with-associations.rst @@ -630,7 +630,7 @@ large collections. $criteria = Criteria::create() ->where(Criteria::expr()->eq("birthday", "1982-02-17")) - ->orderBy(array("username" => "ASC")) + ->orderBy(array("username" => Criteria::ASC)) ->setFirstResult(0) ->setMaxResults(20) ;