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:
commit
779e8edf44
@ -280,4 +280,9 @@ abstract class DoctrineType extends AbstractType
|
|||||||
{
|
{
|
||||||
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
|
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function reset()
|
||||||
|
{
|
||||||
|
$this->choiceLoaders = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user