本文整理汇总了PHP中Doctrine\DBAL\Platforms\AbstractPlatform::getDecimalTypeDeclarationSQL方法的典型用法代码示例。如果您正苦于以下问题:PHP AbstractPlatform::getDecimalTypeDeclarationSQL方法的具体用法?PHP AbstractPlatform::getDecimalTypeDeclarationSQL怎么用?PHP AbstractPlatform::getDecimalTypeDeclarationSQL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Doctrine\DBAL\Platforms\AbstractPlatform
的用法示例。
在下文中一共展示了AbstractPlatform::getDecimalTypeDeclarationSQL方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSQLDeclaration
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
return $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
}
示例2: getSqlDeclaration
public function getSqlDeclaration(array $fieldDeclaration, \Doctrine\DBAL\Platforms\AbstractPlatform $platform)
{
return $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
}
示例3: getSQLDeclaration
/**
* {@inheritDoc}
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
$typeDeclaration = $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
$typeDeclaration .= " COMMENT '(DC2Type:decimal_object)'";
return $typeDeclaration;
}
示例4: getDecimalTypeDeclarationSQL
/**
* {@inheritdoc}
*/
public function getDecimalTypeDeclarationSQL(array $columnDef)
{
return parent::getDecimalTypeDeclarationSQL($columnDef) . $this->getUnsignedDeclaration($columnDef);
}
示例5: getSQLDeclaration
/**
* {@inheritdoc}
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
$fieldDeclaration['precision'] = !isset($fieldDeclaration['precision']) || empty($fieldDeclaration['precision']) ? 9 : $fieldDeclaration['precision'];
$fieldDeclaration['scale'] = !isset($fieldDeclaration['scale']) || empty($fieldDeclaration['scale']) ? 2 : $fieldDeclaration['scale'];
return $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
}
示例6: getSQLDeclaration
/**
* {@inheritdoc}
*/
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{
$fieldDeclaration['precision'] = self::TYPE_PRECISION;
$fieldDeclaration['scale'] = self::TYPE_SCALE;
return $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
}