public static function toDoctrineTypeName($type)
    {
        $typeMap = self::getDoctrineTypeMap();

        if (!array_key_exists($type, $typeMap)) {
            throw new SystemException(sprintf('Unknown column type: %s', $type));
        }

        return $typeMap[$type];
    }