public function remove($name)
    {
        if ($this->has($name)) {
            unset($this->fields[$name]);
            return $this;
        }

        throw new \InvalidArgumentException('Field ['.$name.'] does not exist in '.get_class($this));
    }
public function remove($name)
    {
        if ($this->has($name)) {
            unset($this->fields[$name]);
            return $this;
        }

        throw new \InvalidArgumentException('Field ['.$name.'] does not exist in '.get_class($this));
    }
public function remove ( $ name ) { if ( $ this -> has ( $ name ) ) { unset ( $ this -> fields [ $ name ] ) ; return $ this ; } throw new \ InvalidArgumentException ( 'Field [' . $ name . '] does not exist in ' . get_class ( $ this ) ) ; }
Remove field with specified name from the form

@param $name
@return $this
Remove field with specified name from the form