-
Notifications
You must be signed in to change notification settings - Fork 4
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
'$this'
as $sourcePropertyName
means complete source object
#60
'$this'
as $sourcePropertyName
means complete source object
#60
Conversation
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
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 |
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 |
…r setting/population
…r setting/population
Co-authored-by: Jacob Dreesen <[email protected]>
Co-authored-by: Jacob Dreesen <[email protected]>
Co-authored-by: Jacob Dreesen <[email protected]>
…e object (incl. doc)
1430109
to
3807bf5
Compare
Co-authored-by: Jacob Dreesen <[email protected]>
Co-authored-by: Jacob Dreesen <[email protected]>
$sourcePropertyName
means complete source object'$this'
as $sourcePropertyName
means complete source object
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