Skip to content

Commit

Permalink
Merge pull request #631 from aaronmu/master
Browse files Browse the repository at this point in the history
Fix typo in one of the orderBy examples.
  • Loading branch information
guilhermeblanco committed Mar 26, 2013
2 parents 5ea9cf4 + 3e8dd1e commit a4db7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/reference/query-builder.rst
Original file line number Diff line number Diff line change
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 a4db7c8

Please sign in to comment.