Feature #36695
Control Validation Groups and add Groups for Create and Update
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.
Related issues
Associated revisions
[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
Applied in changeset 46ea9e11c74db201fd7dc127e618f657f8784d12.