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