bug #19241 Fixed BC Layer in DoctrineChoiceLoader (Rootie)

This PR was merged into the 3.2-dev branch.

Discussion
----------

Fixed BC Layer in DoctrineChoiceLoader

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

in the case when the BC Layer is used $idReader is not set to the right value.

Commits
-------

c44d71c Fixed BC Layer in DoctrineChoiceLoader
This commit is contained in:
Fabien Potencier 2016-06-30 09:25:23 +02:00
commit d8707535f1

View File

@ -75,6 +75,7 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
// form first to last argument as of 3.1
$manager = $class;
$class = $idReader;
$idReader = $objectLoader;
$objectLoader = $factory;
}