protected function getBuilder($name = 'name', $propertyPath = null)
 {
     $builder = new FormBuilder($name, '', $this->dispatcher, $this->factory);
     $builder->setAttribute('property_path', new PropertyPath($propertyPath ?: $name));
     $builder->setAttribute('error_mapping', array());
     $builder->setErrorBubbling(false);
     return $builder;
 }
 private function getBuilder($name = 'name', $propertyPath = null, $dataClass = null)
 {
     $builder = new FormBuilder($name, $dataClass, $this->dispatcher, $this->factory);
     $builder->setPropertyPath(new PropertyPath($propertyPath ?: $name));
     $builder->setAttribute('error_mapping', array());
     $builder->setErrorBubbling(false);
     $builder->setMapped(true);
     return $builder;
 }