Bug #12365

mapAndValidate() and map() behave differently

Added by Robert Lemke over 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Property
Start date:
2011-01-19
Due date:
% Done:

0%

PHP Version:
Has patch:
Complexity:

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 8 years ago

mapAndValidate() also requires passing a validator but the previous argument is optional ...

#2 Updated by Robert Lemke over 8 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 8 years ago

  • Status changed from New to Rejected

Not relevant anymore because of new Property Mapper

Also available in: Atom PDF