original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Drops an existing column .