From 468fab3c6f90b0b23114c21a9f7fa6abc1117db0 Mon Sep 17 00:00:00 2001 From: Yordan Lazarov Date: Sun, 9 Aug 2015 15:03:17 +0300 Subject: [PATCH] Update TranslationCollectionFormListener.php Method hasParent() in FormType is deprecated and removed. --- Form/EventListener/TranslationCollectionFormListener.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Form/EventListener/TranslationCollectionFormListener.php b/Form/EventListener/TranslationCollectionFormListener.php index 1878469..aba4224 100644 --- a/Form/EventListener/TranslationCollectionFormListener.php +++ b/Form/EventListener/TranslationCollectionFormListener.php @@ -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;