Commit a2346441 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Revert "Fix for ConversionException throw when the value is empty"

This reverts commit 869cb960.
parent 88e21fc4
......@@ -38,11 +38,10 @@ class ArrayType extends Type
public function convertToPHPValue($value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform)
{
if (empty($value)) {
return array();
if ($value === null) {
return null;
}
$value = (is_resource($value)) ? stream_get_contents($value) : $value;
$val = unserialize($value);
if ($val === false && $value != 'b:0;') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment