mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1796: convertToPHPValue($value, $this->_platform) not run on scalarMappings #2260
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 24, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user rivaros:
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?