Feature #4166

Allow disabling validation for action arguments

Added by Robert Lemke over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Must have
Assignee:
Category:
MVC
Start date:
2009-08-06
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

In situations where a knowingly incomplete / invalid argument needs to be passed to an action, for example an edit action, it is necessary to disable validation for a single or multiple arguments. This should be possible by calling a disableValidation() method on the argument object or by adding a @dontvalidate $argumentName annotation to an action method.

#1

Updated by Robert Lemke over 12 years ago

Technical background: the flag "validationDisabled" is recognized by the ArgumentsValidator: if it is set, the given argument is not included in the property validation and thus ignored.

#2

Updated by Robert Lemke over 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2989.

Also available in: Atom PDF