Fixes #5804
This commit is contained in:
parent
1d8c7f9bac
commit
af3591fbca
@ -344,9 +344,13 @@ class BasicEntityPersister implements EntityPersister
|
|||||||
. ' FROM ' . $tableName
|
. ' FROM ' . $tableName
|
||||||
. ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
|
. ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
|
||||||
|
|
||||||
|
$types = [];
|
||||||
|
foreach ($identifier as $fieldName) {
|
||||||
|
$types[] = $versionedClass->fieldMappings[$fieldName]['type'];
|
||||||
|
}
|
||||||
$flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);
|
$flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);
|
||||||
|
|
||||||
$value = $this->conn->fetchColumn($sql, array_values($flatId));
|
$value = $this->conn->fetchColumn($sql, array_values($flatId), 0, $types);
|
||||||
|
|
||||||
return Type::getType($fieldMapping['type'])->convertToPHPValue($value, $this->platform);
|
return Type::getType($fieldMapping['type'])->convertToPHPValue($value, $this->platform);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user