Skip to content
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

BUGFIX: Recursively allow all properties when converting events #151

Merged
merged 2 commits into from
Sep 22, 2017

Conversation

hlubek
Copy link
Contributor

@hlubek hlubek commented Sep 22, 2017

This fixes issues with nested value objects where a fixed hierarchy
for a property mapping configuration does not work.

This fixes issues with nested value objects where a fixed hierarchy
for a property mapping configuration does not work.
$configuration = new PropertyMappingConfiguration();
$configuration->allowAllProperties();
$configuration->forProperty('*')->allowAllProperties();
$configuration = new AllowAllPropertiesPropertyMappingConfiguration();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I like that!
So much that I would even imagine this to be part of Flow!?

So much even, that I could imagine some special syntax like

$this->propertyMapper->forceConvert($source, $targetType);

(but that could be a separate step ofc)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Let's have a separate PR for that.

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes a lot of sense (didn't test though).
I would expect this in the core to be honest, but we can add it here for starters ofc

@hlubek hlubek merged commit 2b9389f into neos:master Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants