From 3e2aada2d8bce9ee47994c67b81bee321d4566ba Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Thu, 22 Aug 2019 09:15:31 +0200 Subject: [PATCH] [Form][PropertyPathMapper] Avoid extra call to get config --- .../Form/Extension/Core/DataMapper/PropertyPathMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php b/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php index 92187d772c..657d9d63be 100644 --- a/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php +++ b/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php @@ -48,7 +48,7 @@ class PropertyPathMapper implements DataMapperInterface if (!$empty && null !== $propertyPath && $config->getMapped()) { $form->setData($this->propertyAccessor->getValue($data, $propertyPath)); } else { - $form->setData($form->getConfig()->getData()); + $form->setData($config->getData()); } } }