Feature #69

Add validation to the PropertyMapper

Added by Robert Lemke over 12 years ago. Updated over 9 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


PHP Version:
Has patch:


Add validation functionality to the Property Mapper.

First we need a way to set the validator - a method like setValidator() should be added to the property mapper.
If no validator was set but map() was called, the Property Mapper should try to find one by asking the T3_Framework_Validation_ValidatorResolver (see #70). If none was found, no validation is done.

While mapping we should probably validate each property before setting it in the target object. An open question is if it makes sense to validate the whole target object after mapping.

Validation Errors should be added to the Mapping Results.

Associated revisions

Revision 4cfded2e (diff)
Added by Andreas Förthner almost 12 years ago

PropertyMapper and Validation is now implemented. This fixes #66, #69 Additionally the Controller Arguments are passed through the validation framework.


#1 Updated by Robert Lemke about 12 years ago

  • Target version changed from 1 to 18

#2 Updated by Andreas Förthner almost 12 years ago

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

Applied in changeset r837.

#3 Updated by Robert Lemke almost 12 years ago

  • Target version deleted (18)

Also available in: Atom PDF