public function setData($data){
		$data=$this->transformer->encode($data);
		foreach($this->fields as $field){
			if(isset($data[$field->getName()])){
				$field->setData($data[$field->getName()]);
			}
		}
	}