Bug #12365
mapAndValidate() and map() behave differently
Status: | Rejected | Start date: | 2011-01-19 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | Property | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 beta 1 | |||
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: |
Description
mapAndValidate() does not expect $target to be passed by reference. As a consequence, a string (object name) can be passed, BUT if an array would be passed, the function would actually do nothing (because the result is never returned).
History
#1 Updated by Robert Lemke over 4 years ago
mapAndValidate() also requires passing a validator but the previous argument is optional ...
#2 Updated by Robert Lemke over 4 years ago
map() also returns the target object directly if $target was a string! That's contrary to the DocComment
#3 Updated by Sebastian Kurfuerst about 4 years ago
- Status changed from New to Rejected
Not relevant anymore because of new Property Mapper