"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

PropertyPathMapper.php  (phplist-3.4.5.tgz):PropertyPathMapper.php  (phplist-3.4.6.tgz)
skipping to change at line 51 skipping to change at line 51
throw new UnexpectedTypeException($data, 'object, array or empty'); throw new UnexpectedTypeException($data, 'object, array or empty');
} }
foreach ($forms as $form) { foreach ($forms as $form) {
$propertyPath = $form->getPropertyPath(); $propertyPath = $form->getPropertyPath();
$config = $form->getConfig(); $config = $form->getConfig();
if (!$empty && null !== $propertyPath && $config->getMapped()) { if (!$empty && null !== $propertyPath && $config->getMapped()) {
$form->setData($this->propertyAccessor->getValue($data, $propert yPath)); $form->setData($this->propertyAccessor->getValue($data, $propert yPath));
} else { } else {
$form->setData($form->getConfig()->getData()); $form->setData($config->getData());
} }
} }
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function mapFormsToData($forms, &$data) public function mapFormsToData($forms, &$data)
{ {
if (null === $data) { if (null === $data) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)