Affects Version/s: 2.1.6
Fix Version/s: None
Security Level: All
Maybe I am doing something wrong, but here is the case:
I created a custom Doctrine Type:
Now I have a simple table with Photographerguid field as binary (the custom type created) and run a simple query:
The function convertToPhpValue is not run on the value of Photographerguid, so it returns %&@#!((@#
The reason is that in AbstractHydrator::_gatherRowData(array $data, array &$cache, array &$id, array &$nonemptyComponents) function
all fields of a query are determined as scalar (isScalar), and convertToPHPValue($value, $this->_platform) is not run on them.
What is the difference between scalarMappings and fieldMappings?
How to make data conversion work in both directions?