Bug #62750
closedBackport @ignorevalidation for properties in ValidatorResolver
0%
Description
The new recursive validation tries to build validators for every single property in a model, even properties which are prefixed with a '_' (underscore) which should not be persisted.
A possible solution would be to backport the following revision from FLOW: https://forge.typo3.org/projects/package-typo3-flow/repository/revisions/f4aa656dfd873814f1e1f07e0bf656bedd945600
It allows to set @ignorevalidation annotations/tags on properties.
Maybe even skip properties which are prefixed with an underscore '_'.
Updated by Mathias Schreiber almost 7 years ago
- Status changed from New to Needs Feedback
@Alex Schnitzler: is this still open?
Updated by Riccardo De Contardi over 6 years ago
- Status changed from Needs Feedback to New
Updated by Alexander Schnitzler over 4 years ago
I am against backporting this feature and instead implementing an explicit validation. That would result in only those properties being validated which have an assertion set. We are not there yet but that's the goal. The backport of flow is a dirty workaround imho.
Updated by Christian Kuhn almost 2 years ago
- Status changed from New to Closed
I hope it's ok to close here for now: More work on ignorevalidation should happen with new issues in case anyone picks this up.