code: public function removeField($name){
  		for($i=0; $i<count($this->fields); $i++){
  			if($this->fields[$i]->getName()==$name){
  				array_splice($this->fields,$i,1);
  				break;
  			}
  		}
  	}
docs: Remove field from generator
  
  @param string $name - field name