Feature #35781

Model validation

Added by Julian Wachholz over 3 years ago.

Status:New Start date:2012-04-08
Priority:Should have Due date:
Assigned To:- % Done:

0%

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

Description

Currently, only (action)method arguments and single properties in a Model can be tagged with @Validate.
In some cases however, it might be useful to validate a model in its entirety, especially if it's quite a complex one that needs rules between multiple properties.

Model validation would occur after all properties have been set and validated.

Right now, one can always annotate the next higher location where the model is used,
but I think that this is redundant and related to the model. Method argument validators should use validation in the action specific context.

Also available in: Atom PDF