1
0
mirror of synced 2025-01-30 20:11:49 +03:00

Update query-builder.rst

Fix typo in one of the orderBy examples.
This commit is contained in:
Aaron Muylaert 2013-03-26 16:47:41 +01:00
parent 5ea9cf418a
commit 3e8dd1e45c

View File

@ -222,7 +222,7 @@ alternative syntax is available:
$qb->select('u') $qb->select('u')
->from('User u') ->from('User u')
->where('u.id = :identifier') ->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 ->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 Note that numeric placeholders start with a ? followed by a number