[AutoMapper] MappingExtractor::getWriteMutator()
returns null if property is writable
#666
Labels
MappingExtractor::getWriteMutator()
returns null if property is writable
#666
Jane version(s) affected: 7.3.1
Description
If no WriteMutator can be determined via
MappingExtractor::getWriteMutator()
, but the property is writable according toPropertyInfoExtractorInterface::isWriteable()
, an error occurs in line 73 ofSourceTargetMappingExtractor
, because$targetMutatorConstruct
is not checked fornull
.How to reproduce
In the following code snippet there is the property
Attribute::$values
and the corresponding setterAttribute::setValues()
(actually this should be called "setValue", but I made a typo).The
PropertyInfoExtractorInterface
finds out with theReflectionExtractor
thatAttributeValue
s can be added withaddValues()
, soPropertyInfoExtractorInterface:isWriteable()
returns true, butMappingExtractor::getWriteMutator()
returnnull
.The text was updated successfully, but these errors were encountered: