Update TranslationCollectionFormListener.php
Method hasParent() in FormType is deprecated and removed.
This commit is contained in:
parent
0852bf835e
commit
468fab3c6f
|
@ -81,8 +81,7 @@ class TranslationCollectionFormListener implements EventSubscriberInterface
|
|||
if (method_exists($rootData, $addFunction)) {
|
||||
$foundData = true;
|
||||
break;
|
||||
} elseif ($currentForm->hasParent()) {
|
||||
$currentForm = $currentForm->getParent();
|
||||
} elseif (null != ($currentForm = $currentForm->getParent())) {
|
||||
$rootData = $currentForm->getData();
|
||||
} else {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue