1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Update en/reference/query-builder.rst

Fix syntax error in one of the orderBy examples.
This commit is contained in:
Aaron Muylaert 2013-01-04 11:29:34 +01:00
parent d8b94b0527
commit b0a24c8baa

View File

@ -208,7 +208,7 @@ allowed. Binding parameters can simply be achieved as follows:
$qb->select('u')
->from('User u')
->where('u.id = ?1')
->orderBy('u.name ASC');
->orderBy('u.name', 'ASC');
->setParameter(1, 100); // Sets ?1 to 100, and thus we will fetch a user with u.id = 100
You are not forced to enumerate your placeholders as the