From 34057c5e4b82d08d6d5b838dd134ede8e40f9045 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Mon, 20 Dec 2010 22:12:24 +0100 Subject: [PATCH] Add note about how Query#setParameter() accepts named or positional parameters. --- en/reference/dql-doctrine-query-language.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/en/reference/dql-doctrine-query-language.rst b/en/reference/dql-doctrine-query-language.rst index 95f5c28d8..5f9e9cf1b 100644 --- a/en/reference/dql-doctrine-query-language.rst +++ b/en/reference/dql-doctrine-query-language.rst @@ -159,6 +159,9 @@ contrast to many SQL dialects positional parameters are specified with numbers, for example "?1", "?2" and so on. Named parameters are specified with ":name1", ":name2" and so on. +When referencing the parameters in ``Query#setParameter($param, $value)`` +both named and positional parameters are used **without** their prefixies. + DQL SELECT Examples ~~~~~~~~~~~~~~~~~~~