From dce1eb95ff57d306ba49d1974e78f3a5c35bb09a Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sat, 16 Sep 2017 18:00:00 +0200 Subject: [PATCH] [Bridge\Doctrine] Add "DoctrineType::reset()" method --- src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php index 1701099049..25b0aefecf 100644 --- a/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php +++ b/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php @@ -280,4 +280,9 @@ abstract class DoctrineType extends AbstractType { return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType'; } + + public function reset() + { + $this->choiceLoaders = array(); + } }