Feature #69
Add validation to the PropertyMapper
Status: | Resolved | Start date: | ||
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Andreas Förthner | % Done: | 100% |
|
Category: | Property | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: |
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.
Associated revisions
History
#1 Updated by Robert Lemke over 7 years ago
- Target version changed from 1 to 18
#2 Updated by Andreas Förthner about 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r837.
#3 Updated by Robert Lemke about 7 years ago
- Target version deleted (
18)