Commit 869cb960 authored by iBiryukov's avatar iBiryukov

Fix for ConversionException throw when the value is empty

parent 4ae13fac
......@@ -38,10 +38,11 @@ class ArrayType extends Type
public function convertToPHPValue($value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform)
{
if ($value === null) {
return null;
if (empty($value)) {
return array();
}
$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