New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty $sourcePropertyName
means complete source object
#60
base: main
Are you sure you want to change the base?
Empty $sourcePropertyName
means complete source object
#60
Conversation
…r setting/population
…r setting/population
This PR would also mean, that with the following config: # config/packages/neusta_converter.yaml
neusta_converter:
converter:
person.converter:
# ...
properties:
email: ~
phone: '' the email would be populated from the target field Would that be correct, and is this what we want? I'd rather suggest that both |
$sourcePropertyName
means complete source object
Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
I see your point but for some circumstances it is necessary that the "complete" source object should be populated into a certain target property. What about a certain Populator type?! |
But do you need it at this place? If I understood correctly, you wanted to use this especially together with the |
Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
What would you think about the following syntax:
So, as you mentioned: The complete source object will be converted into phone target property. |
I really like this idea! But I would suggest using |
As mentioned in the issue:
Sometimes you want to populate the complete (source) object in a certain target attribute/property.
With that PR it is quite simple possible.
Closes #58