/home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types
Edit: /home/techb158/immovalet.com/vendor/doctrine/dbal/src/Types/SimpleArrayType.php (1425B)
getClobTypeDeclarationSQL($column);
}
/**
* {@inheritdoc}
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
if (! is_array($value) || count($value) === 0) {
return null;
}
return implode(',', $value);
}
/**
* {@inheritdoc}
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
if ($value === null) {
return [];
}
$value = is_resource($value) ? stream_get_contents($value) : $value;
return explode(',', $value);
}
/**
* {@inheritdoc}
*/
public function getName()
{
return Types::SIMPLE_ARRAY;
}
/**
* {@inheritdoc}
*/
public function requiresSQLCommentHint(AbstractPlatform $platform)
{
return true;
}
}