1
0
mirror of synced 2025-02-20 06:03:15 +03:00

Update working-with-associations.rst

Always use the constant for sorting. If you use 'asc' it will not work.
This commit is contained in:
trsteel88 2013-07-23 12:30:33 +10:00
parent 4bc8f7be16
commit 23cc3ea4bc

View File

@ -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)
;