I want to create viewHelper that will pass the whole domain object into the form (in other words generate hidden fields for the whole object). Example code like below.
The problem which I am facing now that it will render all the properties which may lead to errors like "#1297759968: Exception while property mapping at property path "": It is not allowed to map property "sorting". You need to use $propertyMappingConfiguration->allowProperties('sorting') to enable mapping of this property." on the target action.
My question is - how can I get only 'mappable' properties for given object in viewhelper context? I know it is done by PropertyMappingConfiguration in Controller context (shouldMap function). But is it possible to get same info also in viewhelper context?