/home/techb158/dev.balacoffee.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types
Edit: /home/techb158/dev.balacoffee.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/SimpleArrayType.php (1349B)
getClobTypeDeclarationSQL($column);
}
/**
* {@inheritdoc}
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
if (! $value) {
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;
}
}