From a61c7e59d6e8714021dade087345b43c5467e43b Mon Sep 17 00:00:00 2001 From: Ozan Yerli Date: Sun, 4 Sep 2011 23:43:43 +0300 Subject: [PATCH] Fixed typo in the orderBy method. --- en/reference/query-builder.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/reference/query-builder.rst b/en/reference/query-builder.rst index dc156bbe2..c9dbaace6 100644 --- a/en/reference/query-builder.rst +++ b/en/reference/query-builder.rst @@ -415,7 +415,7 @@ re-written using ``QueryBuilder`` helper methods: $qb->select('u') ->from('User', 'u') ->where('u.id = ?1') - ->orderBy('u.name ASC'); + ->orderBy('u.name', 'ASC'); ``QueryBuilder`` helper methods are considered the standard way to build DQL queries. Although it is supported, it should be avoided