Feature #32587
Make property mapping exception more verbose
Status: | Resolved | Start date: | 2011-12-15 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | Adrian Föder | % Done: | 100% |
|
Category: | Property | |||
Target version: | TYPO3 Flow Base Distribution - 1.0.2 | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
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".
Associated revisions
[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
runtime is.
This change adds the object's class name to the exception, if it is
an object; otherwise the scalar type name is added.
Change-Id: If1e89d7dcecbcf381ab0e4450d6deec8eb97c301
Resolves: #32587
History
#1 Updated by Gerrit Code Review over 3 years 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
#2 Updated by Adrian Föder over 3 years ago
...besides, the change inserts a white space to avoid this:
#1297759968: Exception while property mapping at property path "":Property "foobar" with value type [....]
#3 Updated by Adrian Föder over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0073e184580db3b180ae60e12748179907fcf292.