public function removeField($name)
    {
        if (($field = $this->getField($name)) === null) {
            return false;
        }

        foreach ($field->getAliases() as $alias) {
            unset($this->fieldAliases[$alias]);
        }
        unset($this->fields[$name]);
        return true;
    }
public function removeField($name)
    {
        if (($field = $this->getField($name)) === null) {
            return false;
        }

        foreach ($field->getAliases() as $alias) {
            unset($this->fieldAliases[$alias]);
        }
        unset($this->fields[$name]);
        return true;
    }
public function removeField ( $ name ) { if ( ( $ field = $ this -> getField ( $ name ) ) === null ) { return false ; } foreach ( $ field -> getAliases ( ) as $ alias ) { unset ( $ this -> fieldAliases [ $ alias ] ) ; } unset ( $ this -> fields [ $ name ] ) ; return true ; }
Remove a field from the collection

@param string $name A field name or alias
@return boolean Whether or not a field was removed
Remove a field from the collection