Make property mapping exception more verbose
|Priority:||Could have||Due date:|
|Assignee:||Adrian Föder||% Done:||
|Target version:||TYPO3 Flow Base Distribution - 1.0.2|
Currently an exception while property mapping reads as following:
Property "bazbar" could not be set in target object of type "Foo\Bar\Baz\Xyz".
For debugging purposes it would be helpful if it gets
Property "bazbar" with value type "Doctrine\Common\Collections\ArrayCollection" could not be set in target object of type "Foo\Bar\Baz\Xyz".
[FEATURE] Making property mapping exception more verbose
When an exception occurs during property mapping it's hard for the
developer to track what a specific type the intended value at
This change adds the object's class name to the exception, if it is
an object; otherwise the scalar type name is added.
Updated by Gerrit Code Review over 1 year 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/7270
Updated by Adrian Föder over 1 year ago
...besides, the change inserts a white space to avoid this:
#1297759968: Exception while property mapping at property path "":Property "foobar" with value type [....]