[Form][PropertyPathMapper] Avoid extra call to get config
This commit is contained in:
parent
622ce1d0f4
commit
3e2aada2d8
@ -48,7 +48,7 @@ class PropertyPathMapper implements DataMapperInterface
|
|||||||
if (!$empty && null !== $propertyPath && $config->getMapped()) {
|
if (!$empty && null !== $propertyPath && $config->getMapped()) {
|
||||||
$form->setData($this->propertyAccessor->getValue($data, $propertyPath));
|
$form->setData($this->propertyAccessor->getValue($data, $propertyPath));
|
||||||
} else {
|
} else {
|
||||||
$form->setData($form->getConfig()->getData());
|
$form->setData($config->getData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user