Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/GuidType.php
Строк: 28
<?php

namespace DoctrineDBALTypes;

use 
DoctrineDBALPlatformsAbstractPlatform;

/**
 * Represents a GUID/UUID datatype (both are actually synonyms) in the database.
 */
class GuidType extends StringType
{
    
/**
     * {@inheritdoc}
     */
    
public function getSQLDeclaration(array $columnAbstractPlatform $platform)
    {
        return 
$platform->getGuidTypeDeclarationSQL($column);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
Types::GUID;
    }

    
/**
     * {@inheritdoc}
     */
    
public function requiresSQLCommentHint(AbstractPlatform $platform)
    {
        return ! 
$platform->hasNativeGuidType();
    }
}
Онлайн: 0
Реклама