From 0a151f247410287d81ff893f1d9a362a73beef1b Mon Sep 17 00:00:00 2001 From: Eugene Morgan Date: Mon, 15 Jul 2013 15:01:33 -0500 Subject: [PATCH] Remove extra semicolon before ->setParameter() calls --- docs/en/reference/query-builder.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/query-builder.rst b/docs/en/reference/query-builder.rst index 8029822b5..b96e2dfe2 100644 --- a/docs/en/reference/query-builder.rst +++ b/docs/en/reference/query-builder.rst @@ -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 @@ -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