Feature #69

Add validation to the PropertyMapper

Added by Robert Lemke over 13 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Should have
Category:
Property
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

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.

#1

Updated by Robert Lemke over 13 years ago

  • Target version changed from 1 to 18
#2

Updated by Andreas Förthner about 13 years ago

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

Applied in changeset r837.

#3

Updated by Robert Lemke almost 13 years ago

  • Target version deleted (18)

Also available in: Atom PDF