1
0
mirror of synced 2025-03-21 07:23:55 +03:00

Merge pull request #147 from aaronmu/master

Fix syntax error in one of the orderBy examples.
This commit is contained in:
Guilherme Blanco 2013-01-04 06:22:22 -08:00
commit fbd1e7bc45

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