Bug #39445

PropertyMapper chokes on Objects that are already converted inside an collection

Added by Marc Neuhaus 10 months ago. Updated about 1 month ago.

Status:Resolved Start date:2012-12-25
Priority:Must have Due date:
Assignee:Marc Neuhaus % Done:

100%

Category:Property
Target version:TYPO3 Flow Base Distribution - 2.0 beta 1
PHP Version: Complexity:
Has patch:No FLOW3 version affected:Git 1.2 (master)
Votes: 0

Description

The PropertyMapper still chokes on objects which are already converted if it's inside an collection/array.

The PropertyMapper should skip the mapping if the source is already an instance of the target.


Subtasks

Bug #44214: PropertyMapper chokes on Objects that are already convert...Resolved


Related issues

related to TYPO3.Flow - Bug #36988: PropertyMapper chokes on Objects that are already converted Resolved 2012-12-25

Associated revisions

Revision 8ac03660
Added by Marc Neuhaus 9 months ago

[BUGFIX] PropertyMapper should be able to work with recursive already-converted objects

If f.e. an array of already converted objects is passed into the PropertyMapper, a fatal error
will be thrown.

Thus, we move the check from convert() to doMapping() such that it works recursively.

Change-Id: I67fe649c1ee15d38a277227dc353844c0fb17b4b
Resolves: #39445
Releases: 1.2

History

Updated by Gerrit Code Review 10 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13404

Updated by Gerrit Code Review 9 months ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13404

Updated by Gerrit Code Review 9 months ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13404

Updated by Marc Neuhaus 9 months ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF