public function dropColumn($name, $bundle = null)
    {
        $attr = TableRegistry::get('Eav.EavAttributes')->find()
            ->where([
                'name' => $name,
                'table_alias' => $this->_table->table(),
                'bundle IS' => $bundle,
            ])
            ->limit(1)
            ->first();

        Cache::clear(false, 'eav_table_attrs');
        if ($attr) {
            return (bool)TableRegistry::get('Eav.EavAttributes')->delete($attr);
        }

        return false;
    }
public function dropColumn($name, $bundle = null)
    {
        $attr = TableRegistry::get('Eav.EavAttributes')->find()
            ->where([
                'name' => $name,
                'table_alias' => $this->_table->table(),
                'bundle IS' => $bundle,
            ])
            ->limit(1)
            ->first();

        Cache::clear(false, 'eav_table_attrs');
        if ($attr) {
            return (bool)TableRegistry::get('Eav.EavAttributes')->delete($attr);
        }

        return false;
    }
public function dropColumn ( $ name , $ bundle = null ) { $ attr = TableRegistry :: get ( 'Eav.EavAttributes' ) -> find ( ) -> where ( [ 'name' => $ name , 'table_alias' => $ this -> _table -> table ( ) , 'bundle IS' => $ bundle , ] ) -> limit ( 1 ) -> first ( ) ; Cache :: clear ( false , 'eav_table_attrs' ) ; if ( $ attr ) { return ( bool ) TableRegistry :: get ( 'Eav.EavAttributes' ) -> delete ( $ attr ) ; } return false ; }
Drops an existing column.

@param string $name Name of the column to drop
@param string|null $bundle Removes the column within a particular bundle
@return bool True on success, false otherwise
Drops an existing column .