public function convertToPHPValue($value, AbstractPlatform $platform) { preg_match('/POLYGON\\(\\((.*)\\)\\)/', $value, $matches); if (!isset($matches[1])) { throw new Exception('No Polygon Points'); } return $matches[1]; }