You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mapping transformer uses Symfony's PropertyAccess component in order to set values.
When mappings are incorrect we need to configure the component properly if we want to see exceptions :
We need to remove the fallback with the array or trigger an exception before if the property does not exist
The text was updated successfully, but these errors were encountered:
FabienSalles
changed the title
[Transformer] We don't have an error when we try to transform an invalid index
[Transformer] We should throw an exception when we try to transform an invalid index
Apr 28, 2020
Description
The mapping transformer uses Symfony's PropertyAccess component in order to set values.
When mappings are incorrect we need to configure the component properly if we want to see exceptions :
After this, we can see an exception when we have an invalid index but the second one never trigger because if the property is not writable we set the value without the property access
https://github.com/cleverage/process-bundle/blob/v3.1-dev/Transformer/MappingTransformer.php#L144
We need to remove the fallback with the array or trigger an exception before if the property does not exist
The text was updated successfully, but these errors were encountered: