feature #24232 [Bridge\Doctrine] Add "DoctrineType::reset()" method (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Bridge\Doctrine] Add "DoctrineType::reset()" method

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

Works with https://github.com/doctrine/DoctrineBundle/pull/695

Commits
-------

dce1eb9 [Bridge\Doctrine] Add "DoctrineType::reset()" method
This commit is contained in:
Nicolas Grekas 2017-09-20 07:20:06 +02:00
commit 779e8edf44

View File

@ -280,4 +280,9 @@ abstract class DoctrineType extends AbstractType
{
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
}
public function reset()
{
$this->choiceLoaders = array();
}
}