/**
  * creates setter method for given field
  *
  * @param FieldDescriptorInterface $column
  * @param string $name
  * @return \Zend\Code\Generator\MethodGenerator
  */
 protected function createSetMethod(FieldDescriptorInterface $column, $name)
 {
     $propertyName = lcfirst($name);
     $parameter = new \Zend\Code\Generator\ParameterGenerator();
     $parameter->setName("value");
     $method = new MethodGenerator();
     $method->setParameter($parameter);
     $type = $this->getFieldType($column);
     $method->setBody(sprintf($this->codeLibrary()->get('model.setMethod' . ucfirst($type) . '.body'), $propertyName));
     $method->setName("set" . $name);
     $docblock = new \Zend\Code\Generator\DocblockGenerator(sprintf($this->codeLibrary()->get('model.setMethod.description'), $propertyName));
     $docblock->setTag(array("name" => "param", "description" => $type));
     $method->setDocBlock($docblock);
     return $method;
 }