Skip to content

Commit

Permalink
Update working-with-associations.rst
Browse files Browse the repository at this point in the history
Always use the constant for sorting. If you use 'asc' it will not work.
  • Loading branch information
trsteel88 committed Jul 23, 2013
1 parent 4bc8f7b commit 23cc3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/reference/working-with-associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
;
Expand Down

0 comments on commit 23cc3ea

Please sign in to comment.