DoctrineExtensions\Types\PolygonType::convertToDatabaseValueSQL PHP Method

convertToDatabaseValueSQL() public method

public convertToDatabaseValueSQL ( $sqlExpr, Doctrine\DBAL\Platforms\AbstractPlatform $platform )
$platform Doctrine\DBAL\Platforms\AbstractPlatform
    public function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
    {
        return sprintf('ST_PolygonFromText(%s)', $sqlExpr);
    }