Skip to content

Commit

Permalink
Update query-builder.rst
Browse files Browse the repository at this point in the history
Fix typo in one of the orderBy examples.
  • Loading branch information
aaronmu committed Mar 26, 2013
1 parent 5ea9cf4 commit 3e8dd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/reference/query-builder.rst
Expand Up @@ -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
Expand Down

0 comments on commit 3e8dd1e

Please sign in to comment.