class PropertyPathMapper implements DataMapperInterface
Maps arrays/objects to/from forms using property paths.
__construct(PropertyAccessorInterface $propertyAccessor = null) | ||
mapDataToForms(mixed $data, FormInterface[]|Traversable $forms) Maps properties of some data to a list of forms. | ||
mapFormsToData(FormInterface[]|Traversable $forms, mixed $data) Maps the data of a list of forms into the properties of some data. |
PropertyAccessorInterface | $propertyAccessor |
Maps properties of some data to a list of forms.
mixed | $data | Structured data |
FormInterface[]|Traversable | $forms | A list of {@link FormInterface} instances |
UnexpectedTypeException | if the type of the data parameter is not supported |
Maps the data of a list of forms into the properties of some data.
FormInterface[]|Traversable | $forms | A list of {@link FormInterface} instances |
mixed | $data | Structured data |
UnexpectedTypeException | if the type of the data parameter is not supported |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.html