From 3e8dd1e45c083eca14886a50d71d61d0d6b69df2 Mon Sep 17 00:00:00 2001 From: Aaron Muylaert Date: Tue, 26 Mar 2013 16:47:41 +0100 Subject: [PATCH] Update query-builder.rst Fix typo in one of the orderBy examples. --- docs/en/reference/query-builder.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/query-builder.rst b/docs/en/reference/query-builder.rst index 7d9ee9a8a..8029822b5 100644 --- a/docs/en/reference/query-builder.rst +++ b/docs/en/reference/query-builder.rst @@ -222,7 +222,7 @@ alternative syntax is available: $qb->select('u') ->from('User u') ->where('u.id = :identifier') - ->orderBy('u.name ASC'); + ->orderBy('u.name', 'ASC'); ->setParameter('identifier', 100); // Sets :identifier to 100, and thus we will fetch a user with u.id = 100 Note that numeric placeholders start with a ? followed by a number