formatColumnName example

$this->entityManager = $entityManager;
        $this->schemaOperator = $schemaOperator;
        $this->tableMapping = $tableMapping;
        $this->typeMapping = $typeMapping;
    }

    /** * {@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,
            
Home | Imprint | This part of the site doesn't use cookies.