Opsway\Doctrine\DBAL\Types\TsVector::convertToDatabaseValue PHP Method

convertToDatabaseValue() public method

Converts a value from its PHP representation to its database representation of this type.
public convertToDatabaseValue ( mixed $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : mixed
$value mixed The value to convert.
$platform Doctrine\DBAL\Platforms\AbstractPlatform The currently used database platform.
return mixed The database representation of the value.
    public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        if (is_array($value)) {
            $value = implode(' ', $value);
        }
        return $value;
    }