[Form][PropertyPathMapper] Avoid extra call to get config

This commit is contained in:
Thomas Calvet 2019-08-22 09:15:31 +02:00
parent 622ce1d0f4
commit 3e2aada2d8

View File

@ -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());
}
}
}