1
0
mirror of synced 2024-12-14 23:26:04 +03:00

Add note about how Query#setParameter() accepts named or positional parameters.

This commit is contained in:
Benjamin Eberlei 2010-12-20 22:12:24 +01:00
parent 53ebc683c9
commit 34057c5e4b

View File

@ -159,6 +159,9 @@ contrast to many SQL dialects positional parameters are specified
with numbers, for example "?1", "?2" and so on. Named parameters with numbers, for example "?1", "?2" and so on. Named parameters
are specified with ":name1", ":name2" and so on. 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 DQL SELECT Examples
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~