/**
  * Implements the abstract method.
  *
  *
  * @param \UJM\ExoBundle\Entity\InteractionHole $originalInterHole
  *
  * Return boolean
  */
 public function processUpdate($originalInterHole)
 {
     $originalHoles = [];
     $originalHints = [];
     // Create an array of the current Choice objects in the database
     foreach ($originalInterHole->getHoles() as $hole) {
         $originalHoles[] = $hole;
     }
     foreach ($originalInterHole->getQuestion()->getHints() as $hint) {
         $originalHints[] = $hint;
     }
     if ($this->request->getMethod() == 'POST') {
         $this->form->handleRequest($this->request);
         // Uses the default category if no category selected
         $this->checkCategory();
         if ($this->form->isValid()) {
             foreach ($this->form->getData()->getHoles() as $h) {
                 foreach ($h->getWordResponses() as $wr) {
                     $errorList = $this->validator->validate($wr);
                     if (count($errorList) > 0) {
                         return $errorList[0]->getMessage();
                     }
                 }
             }
             $this->onSuccessUpdate($this->form->getData(), $originalHoles, $originalHints);
             return true;
         }
     }
     return false;
 }