Feature #36695

Control Validation Groups and add Groups for Create and Update

Added by Alexander Berl over 3 years ago. Updated almost 3 years ago.

Status:Resolved Start date:2012-04-28
Priority:Should have Due date:
Assigned To:- % Done:

100%

Category:Validation
Target version:-
PHP Version: Complexity:
Has patch:Yes

Description

As a developer I want to be able to validate objects differently on creation and update, for example a user registration needs to validate for non-existance of properties username/email, however when updating the user object those validations may not be evaluated, but all others.

I suggest extending the Validation Group Changeset with a new Annotation ValidationGroups for action methods to override the default groups ("Default", "Controller") and adding validation groups "Create" and "Update" for the MVC actions create and update.

0012-FEATURE-Validation-Context-specific-validation-throu.patch Magnifier (4.3 kB) Alexander Berl, 2012-04-29 00:26


Related issues

related to TYPO3.Flow - Feature #32832: Implement context-specific validation through Validation ... Resolved 2011-12-24

Associated revisions

Revision 46ea9e11
Added by Alexander Berl almost 3 years ago

[FEATURE] Control Validation Groups via annotations

This feature adds support for overriding validation groups in actions through
@FLOW\ValidationGroups annotation.

Change-Id: Ib1e956904af3f7d0ab8e4ae5b9975994c22b7e2c
Resolves: #36695
Releases: 1.2

History

#1 Updated by Gerrit Code Review almost 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13556

#2 Updated by Gerrit Code Review almost 3 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13556

#3 Updated by Gerrit Code Review almost 3 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13556

#4 Updated by Gerrit Code Review almost 3 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13556

#5 Updated by Alexander Berl almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF