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