public function removeField(Element $field)
    {
        foreach ($this->fields as $i => $elem) {
            if ($elem == $field) {
                unset($this->fields[$i]);
                break;
            }
        }

        return $this;
    }
public function removeField(Element $field)
    {
        foreach ($this->fields as $i => $elem) {
            if ($elem == $field) {
                unset($this->fields[$i]);
                break;
            }
        }

        return $this;
    }
public function removeField ( Element $ field ) { foreach ( $ this -> fields as $ i => $ elem ) { if ( $ elem == $ field ) { unset ( $ this -> fields [ $ i ] ) ; break ; } } return $ this ; }
Remove a field from the form

@param Element $field
@return Form
Remove a field from the form