/**
* {@inheritdoc}
*/
public function delete($table,
$column,
$updateDependingTables = false
) { $column =
$this->
formatColumnName($column);
if (!
$this->tableMapping->
isTableColumn($table,
$column)) { throw new RuntimeException(sprintf('Table %s has no column with name %s',
$table,
$column));
} $this->schemaOperator->
dropColumn($table,
$column);
$repository =
$this->entityManager->
getRepository(Configuration::
class);
$entity =
$repository->
findOneBy([ 'tableName' =>
$table,
'columnName' =>
$column,
]);
if ($entity) { $this->entityManager->
remove($entity);
$this->entityManager->
flush($entity);
}