|
| 1 | +# Upgrade to 3.5 |
| 2 | + |
| 3 | +## Deprecate methods for configuring no longer configurable features |
| 4 | + |
| 5 | +Since 3.0, lazy ghosts are enabled unconditionally, and so is rejecting ID |
| 6 | +collisions in the identity map. |
| 7 | + |
| 8 | +As a consequence, the following methods are deprecated and will be removed in 4.0: |
| 9 | +* `Doctrine\ORM\Configuration::setLazyGhostObjectEnabled()` |
| 10 | +* `Doctrine\ORM\Configuration::isLazyGhostObjectEnabled()` |
| 11 | +* `Doctrine\ORM\Configuration::setRejectIdCollisionInIdentityMap()` |
| 12 | +* `Doctrine\ORM\Configuration::isRejectIdCollisionInIdentityMapEnabled()` |
| 13 | + |
1 | 14 | # Upgrade to 3.4 |
2 | 15 |
|
3 | 16 | ## Discriminator Map class duplicates |
@@ -26,7 +39,7 @@ The class `Doctrine\ORM\Mapping\Driver\DatabaseDriver` is deprecated without rep |
26 | 39 |
|
27 | 40 | Output walkers should implement the new `\Doctrine\ORM\Query\OutputWalker` interface and create |
28 | 41 | `Doctrine\ORM\Query\Exec\SqlFinalizer` instances instead of `Doctrine\ORM\Query\Exec\AbstractSqlExecutor`s. |
29 | | -The output walker must not base its workings on the query `firstResult`/`maxResult` values, so that the |
| 42 | +The output walker must not base its workings on the query `firstResult`/`maxResult` values, so that the |
30 | 43 | `SqlFinalizer` can be kept in the query cache and used regardless of the actual `firstResult`/`maxResult` values. |
31 | 44 | Any operation dependent on `firstResult`/`maxResult` should take place within the `SqlFinalizer::createExecutor()` |
32 | 45 | method. Details can be found at https://github.com/doctrine/orm/pull/11188. |
@@ -137,7 +150,7 @@ WARNING: This was relaxed in ORM 3.2 when partial was re-allowed for array-hydra |
137 | 150 | `Doctrine\ORM\Query::HINT_FORCE_PARTIAL_LOAD` are removed. |
138 | 151 | - `Doctrine\ORM\EntityManager*::getPartialReference()` is removed. |
139 | 152 |
|
140 | | -## BC BREAK: Enforce ArrayCollection Type on `\Doctrine\ORM\QueryBuilder::setParameters(ArrayCollection $parameters)` |
| 153 | +## BC BREAK: Enforce ArrayCollection Type on `\Doctrine\ORM\QueryBuilder::setParameters(ArrayCollection $parameters)` |
141 | 154 |
|
142 | 155 | The argument $parameters can no longer be a key=>value array. Only ArrayCollection types are allowed. |
143 | 156 |
|
|
0 commit comments