class PropertyPathMapper implements DataMapperInterface
Maps arrays/objects to/from forms using property paths.
Methods
__construct(PropertyAccessorInterface $propertyAccessor = null) Creates a new property path mapper. | ||
mapDataToForms(mixed $data, FormInterface[] $forms) Maps properties of some data to a list of forms. | ||
mapFormsToData(FormInterface[] $forms, mixed $data) Maps the data of a list of forms into the properties of some data. |
Details
__construct(PropertyAccessorInterface $propertyAccessor = null)
Creates a new property path mapper.
mapDataToForms(mixed $data, FormInterface[] $forms)
Maps properties of some data to a list of forms.
mapFormsToData(FormInterface[] $forms, mixed $data)
Maps the data of a list of forms into the properties of some data.
Please login to continue.