Fix a lot of incorrect behaviors#347
Merged
Merged
Conversation
…n nullable target
…checked at runtime
…tems to the right type
…ToContext accessors
…tifiers under strict types
…om a non-resource source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed
MapFromattribute reference instead ofMapTowhen resolving transformers inMapFromListenerTypeErroris thrown for typed properties instead of the transformation crashing on the null value__PM__proxy name off-by-oneCheckTypeInterfaceon enum, date-time and uid transformers so union source types generate a runtime check for every branchisAllowedAttributeclosure, fixingMapToContextcombined withskip_null_valuesparent.child) against null or uninitialized parent values on read, write and constructor paths, support private nested leaf properties and nullable parent typesMissingConstructorArgumentsExceptionMapperattribute wins as documented, instead of the lowesthash_finalno longer receives a string as its boolean argument, fixing mappers generated withstrictTypes: trueFileLoader, fixing partially written files and lost registry entries under concurrency, the cache warmer no longer discards previously registered mapper hashesLazyMaponly once instead of re-running the mapping on every accessMapattributeifcondition semantics with symfony/object-mapper:if: falsenever maps the property, callables receive the value first and class levelMaptargets also match child classesevalloader is enabled, fixing container compilation withautomapper.loader.eval: true