Exemple #1
0
 /**
  * Set the table column type
  *
  * @param ColumnMap $columnMap
  * @param array $columnConfiguration
  * @return ColumnMap
  */
 protected function setType(ColumnMap $columnMap, $columnConfiguration)
 {
     $tableColumnType = isset($columnConfiguration['type']) ? $columnConfiguration['type'] : null;
     $columnMap->setType(\TYPO3\CMS\Core\DataHandling\TableColumnType::cast($tableColumnType));
     $tableColumnSubType = isset($columnConfiguration['internal_type']) ? $columnConfiguration['internal_type'] : null;
     $columnMap->setInternalType(\TYPO3\CMS\Core\DataHandling\TableColumnSubType::cast($tableColumnSubType));
     return $columnMap;
 }