Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 779e8ed

Browse files
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 doctrine/DoctrineBundle#695 Commits ------- dce1eb9 [Bridge\Doctrine] Add "DoctrineType::reset()" method
2 parents 0e73d71 + dce1eb9 commit 779e8ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,9 @@ public function getParent()
280280
{
281281
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
282282
}
283+
284+
public function reset()
285+
{
286+
$this->choiceLoaders = array();
287+
}
283288
}

0 commit comments

Comments
 (0)