Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.2
-
Fix Version/s: 2.3.3
-
Component/s: Mapping Drivers
-
Security Level: All
-
Labels:None
Description
Serialization breaks because the cache driver tries to serialize the ClassMetaData instance containing a simplexml element:
Doctrine\ORM\Mapping\ClassMetadata Object ( [fieldMappings] => Array ( [version] => Array ( [fieldName] => version [type] => integer [columnName] => version [version] => SimpleXMLElement Object ( [0] => true ) [default] => 1 [declared] => path to entity )
The fix is simple change in the columnToArray method in the XML driver class:
changing:
$mapping['version'] = $fieldMapping['version'];
to:
$mapping['version'] = $this->evaluateBoolean($fieldMapping['version']);