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