1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Added 2.3 BC break information.

This commit is contained in:
Guilherme Blanco 2012-05-28 12:28:54 -04:00
parent 79ff1f10d2
commit d8e165da8d

View File

@ -7,3 +7,21 @@ and strip a trailing "s" character if there is one.
# Merge copies non persisted properties too # Merge copies non persisted properties too
When merging an entity in UoW not only mapped properties are copied, but also others. When merging an entity in UoW not only mapped properties are copied, but also others.
# Query, QueryBuilder and NativeQuery parameters *BC break*
From now on, parameters in queries is an ArrayCollection instead of a simple array.
This affects heavily the usage of setParameters(), because it will not append anymore
parameters to query, but will actually override the already defined ones.
Whenever you are retrieving a parameter (ie. $query->getParameter(1)), you will
receive an instance of Query\Parameter, which contains the methods "getName",
"getValue" and "getType". Parameters are also only converted to when necessary, and
not when they are set.
Also, related functions were affected:
* execute(ArrayCollection $parameters, $hydrationMode)
* iterate(ArrayCollection $parameters, $hydrationMode)
* setParameters(ArrayCollection $parameters)
* getParameters()
* getParameter($key)