Update working-with-associations.rst
Always use the constant for sorting. If you use 'asc' it will not work.
This commit is contained in:
parent
4bc8f7be16
commit
23cc3ea4bc
@ -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)
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user