if (!
$name) { throw new Exception('No column name provided'
);
} $this->
validateField($table);
$this->
validateField($name);
if (!
$this->tableMapping->
isAttributeTable($table)) { throw new Exception(sprintf('Provided table is no attribute table: %s',
$table));
} if ($this->tableMapping->
isIdentifierColumn($table,
$name)) { throw new Exception(sprintf('Provided column is an identifier column: %s',
$name));
} $lowerCaseName =
strtolower($name);
if (\
in_array($lowerCaseName,
$this->nameBlacklist
)) { throw new Exception(sprintf('Provided name %s is a reserved keyword.',
$name));
} } /**
* @param string $field
*
* @throws Exception
*/