public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        if (!$value) {
            return null;
        }

        if ($platform instanceof MySqlPlatform) {
            $format = "POINT(%F %F)";
        } else {
            $format = "(%F, %F)";
        }

        return sprintf($format, $value->getLatitude(), $value->getLongitude());
    }
public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        if (!$value) {
            return null;
        }

        if ($platform instanceof MySqlPlatform) {
            $format = "POINT(%F %F)";
        } else {
            $format = "(%F, %F)";
        }

        return sprintf($format, $value->getLatitude(), $value->getLongitude());
    }
public function convertToDatabaseValue ( $ value , AbstractPlatform $ platform ) { if ( ! $ value ) { return null ; } if ( $ platform instanceof MySqlPlatform ) { $ format = "POINT(%F %F)" ; } else { $ format = "(%F, %F)" ; } return sprintf ( $ format , $ value -> getLatitude ( ) , $ value -> getLongitude ( ) ) ; }
Converts PHP representation to the SQL value.

@param Point            $value    specific point
@param AbstractPlatform $platform DB platform

@return string
Converts PHP representation to the SQL value .