Permalink
Browse files

Update query-builder.rst

Fix typo in one of the orderBy examples.
  • Loading branch information...
1 parent 5ea9cf4 commit 3e8dd1e45c083eca14886a50d71d61d0d6b69df2 @aaronmu aaronmu committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 3e8dd1e

Please sign in to comment.