Skip to content

Commit

Permalink
feature #24232 [Bridge\Doctrine] Add "DoctrineType::reset()" method (…
Browse files Browse the repository at this point in the history
…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 doctrine/DoctrineBundle#695

Commits
-------

dce1eb9 [Bridge\Doctrine] Add "DoctrineType::reset()" method
  • Loading branch information
nicolas-grekas committed Sep 20, 2017
2 parents 0e73d71 + dce1eb9 commit 779e8ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
Expand Up @@ -280,4 +280,9 @@ public function getParent()
{
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
}

public function reset()
{
$this->choiceLoaders = array();
}
}

0 comments on commit 779e8ed

Please sign in to comment.