library/Garp/Spawn/Fields.php
public function delete($name) {
        if ($this->exists($name)) {
            foreach ($this->_fields as $i => $field) {
                if ($field->name === $name) {
                    unset($this->_fields[$i]);
                    break;
                }
            }
        } else throw new Exception("The '{$name}' field is not registered for this model.");
    }
public function delete($name) {
        if ($this->exists($name)) {
            foreach ($this->_fields as $i => $field) {
                if ($field->name === $name) {
                    unset($this->_fields[$i]);
                    break;
                }
            }
        } else throw new Exception("The '{$name}' field is not registered for this model.");
    }
public function delete ( $ name ) { if ( $ this -> exists ( $ name ) ) { foreach ( $ this -> _fields as $ i => $ field ) { if ( $ field -> name === $ name ) { unset ( $ this -> _fields [ $ i ] ) ; break ; } } } else throw new Exception ( "The '{$name}' field is not registered for this model." ) ; }
Delete a field from the fields registry.
@param String $name Field name.
Delete a field from the fields registry .