Project

General

Profile

Actions

Bug #62750

closed

Backport @ignorevalidation for properties in ValidatorResolver

Added by Arjen Hoekema about 10 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2014-11-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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 '_'.

Actions #1

Updated by Mathias Schreiber almost 7 years ago

  • Status changed from New to Needs Feedback

@Alex Schnitzler: is this still open?

Actions #2

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Needs Feedback to New
Actions #3

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.

Actions #4

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.

Actions

Also available in: Atom PDF