check if point value is null for 2 methods in PointType

This commit is contained in:
nobohan 2021-04-30 13:51:45 +02:00
parent bec0700d39
commit 91860afd80

View File

@ -36,8 +36,12 @@ class PointType extends Type {
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
if ($value === NULL){
return NULL;
} else {
return Point::fromGeoJson($value);
}
}
public function getName()
{
@ -46,8 +50,12 @@ class PointType extends Type {
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
if ($value === NULL){
return NULL;
} else {
return $value->toWKT();
}
}
public function canRequireSQLConversion()
{