Pimcore\Model\Object\ClassDefinition\Data::getColumnType PHP Method

getColumnType() public method

public getColumnType ( ) : string | array
return string | array | array
    public function getColumnType()
    {
        return $this->columnType;
    }

Usage Example

Example #1
0
 /**
  * @return string
  */
 public function getColumnType()
 {
     if ($this->getInteger()) {
         return "bigint(20)";
     }
     if ($this->getDecimalPrecision()) {
         return "decimal(64, " . intval($this->getDecimalPrecision()) . ")";
     }
     return parent::getColumnType();
 }