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: Use property mapping for type: SomeClass or array<SomeClass> #62

Merged
merged 4 commits into from
Jun 19, 2023

Conversation

mhsdesign
Copy link
Contributor

@mhsdesign mhsdesign commented Jun 14, 2023

regression in Version 2, due to accidental too strict handling ^^

solves: #61

This will allow property mapping in the following cases:

  • type: SomeClass
  • type: array<SomeClass>

but we make sure to use strict property mapping, so in case there were any errors PropertyMapper::getMessages()::hasErrors() we will log them as usual.

The restrictions will prevent the property mapper turning a array into a string for example. For primitives, the given type must match as is.

References can still be set either by passing in a node object or its identifier (which must exist)

@mhsdesign mhsdesign marked this pull request as ready for review June 19, 2023 08:59
@mhsdesign mhsdesign changed the title BUGFIX: Use property mapping BUGFIX: Use property mapping for type: SomeClass or array<SomeClass> Jun 19, 2023
@mhsdesign mhsdesign linked an issue Jun 19, 2023 that may be closed by this pull request
Copy link
Member

@jonnitto jonnitto left a comment

Choose a reason for hiding this comment

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

I've tested it with https://github.com/jonnitto/Jonnitto.ImagesInARow and it works as expected

Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

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

Fine by reading

@Sebobo Sebobo merged commit 970643b into master Jun 19, 2023
@Sebobo Sebobo deleted the bugfix/61-triggerPropertyMapping branch June 19, 2023 10:59
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.

BUG: Asset id cant be set as property
3 participants