Commit 46061fe9 authored by rivaros's avatar rivaros

Forgot the fixes

parent 2ef364e7
......@@ -619,6 +619,17 @@ class PostgreSqlPlatform extends AbstractPlatform
return 'SMALLINT';
}
/**
* Decleration for a UNIQUEIDENTIFIER (GUID) field in SQL Server
*
* @param array $field
* @return string
*/
public function getGuidTypeDeclartionSQL(array $field)
{
return 'UUID';
}
/**
* @override
*/
......
......@@ -38,5 +38,18 @@ class GuidType extends StringType
{
return Type::GUID;
}
/**
* Converts a value from its database representation to its PHP representation
* of this type.
*
* @param mixed $value The value to convert.
* @param AbstractPlatform $platform The currently used database platform.
* @return mixed The PHP representation of the value.
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
return (null === $value) ? null : str_replace("-","", $value);
}
}
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