Feature #66

Add the feature "Mapping Results" to the Property Mapper

Added by Robert Lemke over 7 years ago. Updated almost 5 years ago.

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

The Property Mapper doesn't only map properties from one object to another but also invokes the necessary validators and filters. Validation, filtering and other mapping errors should be tracked in an object.

The interface for !MappingResult should look similar to this:

#!php
public function addError(T3_Framework_Error_Error $error);
public function getErrors();
public function hasErrors();

public function addSuppressedField($fieldName);
public function getSuppressedfields();

Additionally we probably need a "!MappingError" class which extends T3_Framework_Error_Error. This class is then used for true mapping errors. Finally we also need "!ValidationError" - but that belongs to the Validation subpackage.

Associated revisions

Revision 4cfded2e
Added by Andreas Förthner about 7 years ago

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

History

#1 Updated by Robert Lemke over 7 years ago

You will have to solve #67 before you create the new Error classes.

#2 Updated by Robert Lemke over 7 years ago

  • Target version changed from 1 to 18

#3 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.

#4 Updated by Robert Lemke about 7 years ago

  • Target version deleted (18)

Also available in: Atom PDF