当前位置: 首页>>代码示例>>PHP>>正文


PHP AbstractPlatform::getDecimalTypeDeclarationSQL方法代码示例

本文整理汇总了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);
 }
开发者ID:skoop,项目名称:symfony-sandbox,代码行数:4,代码来源:DecimalType.php

示例2: getSqlDeclaration

 public function getSqlDeclaration(array $fieldDeclaration, \Doctrine\DBAL\Platforms\AbstractPlatform $platform)
 {
     return $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
 }
开发者ID:andreia,项目名称:doctrine,代码行数:4,代码来源:DecimalType.php

示例3: getSQLDeclaration

 /**
  * {@inheritDoc}
  */
 public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
 {
     $typeDeclaration = $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
     $typeDeclaration .= " COMMENT '(DC2Type:decimal_object)'";
     return $typeDeclaration;
 }
开发者ID:coolms,项目名称:doctrine,代码行数:9,代码来源:DecimalObject.php

示例4: getDecimalTypeDeclarationSQL

 /**
  * {@inheritdoc}
  */
 public function getDecimalTypeDeclarationSQL(array $columnDef)
 {
     return parent::getDecimalTypeDeclarationSQL($columnDef) . $this->getUnsignedDeclaration($columnDef);
 }
开发者ID:ismailbaskin,项目名称:dbal,代码行数:7,代码来源:MySqlPlatform.php

示例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);
 }
开发者ID:lafaiDev,项目名称:suive_com,代码行数:9,代码来源:BrPriceType.php

示例6: getSQLDeclaration

 /**
  * {@inheritdoc}
  */
 public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
 {
     $fieldDeclaration['precision'] = self::TYPE_PRECISION;
     $fieldDeclaration['scale'] = self::TYPE_SCALE;
     return $platform->getDecimalTypeDeclarationSQL($fieldDeclaration);
 }
开发者ID:Hikariii,项目名称:doctrine-extensions,代码行数:9,代码来源:MoneyType.php


注:本文中的Doctrine\DBAL\Platforms\AbstractPlatform::getDecimalTypeDeclarationSQL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。