src/Attribute/BaseSimple.php
public function deleteColumn()
    {
        $schemaManager = $this->connection->getSchemaManager();
        $columns       = $schemaManager->listTableColumns($this->getMetaModel()->getTableName());

        // Try to delete the column. If it does not exist as we can assume it has been deleted already then.
        if ($this->getColName() && isset($columns[$this->getColName()])) {
            $this->tableManipulator->dropColumn($this->getMetaModel()->getTableName(), $this->getColName());
        }
    }
public function deleteColumn()
    {
        $schemaManager = $this->connection->getSchemaManager();
        $columns       = $schemaManager->listTableColumns($this->getMetaModel()->getTableName());

        // Try to delete the column. If it does not exist as we can assume it has been deleted already then.
        if ($this->getColName() && isset($columns[$this->getColName()])) {
            $this->tableManipulator->dropColumn($this->getMetaModel()->getTableName(), $this->getColName());
        }
    }
public function deleteColumn ( ) { $ schemaManager = $ this -> connection -> getSchemaManager ( ) ; $ columns = $ schemaManager -> listTableColumns ( $ this -> getMetaModel ( ) -> getTableName ( ) ) ; // Try to delete the column. If it does not exist as we can assume it has been deleted already then. if ( $ this -> getColName ( ) && isset ( $ columns [ $ this -> getColName ( ) ] ) ) { $ this -> tableManipulator -> dropColumn ( $ this -> getMetaModel ( ) -> getTableName ( ) , $ this -> getColName ( ) ) ; } }
Removes the underlying database structure for this field.

@return void
Removes the underlying database structure for this field .