/**
  * @param object $entity
  *
  * @return void
  * @author Michaƫl VEROUX
  */
 private function extractFromForm($entity)
 {
     $form = $this->formFactory->create($this->formName, $entity);
     $views = $form->createView()->children;
     $views = $this->unsetRemoves($views, $this->rootRemoves);
     $values = array($this->formName => array());
     $labels = $values;
     $this->extractValues($views, $values[$this->formName], $labels[$this->formName], $this->formName);
     $flattenLabels = $this->flatten($labels);
     $flattenValues = $this->flatten($values);
     $this->collection->mergeLabels($flattenLabels);
     $this->collection->addLine($flattenValues);
 }