/**
  * Implements the abstract method.
  *
  *
  * @param \UJM\ExoBundle\Entity\InteractionQCM $originalInterQCM
  *
  * Return boolean
  */
 public function processUpdate($originalInterQCM)
 {
     $originalChoices = [];
     $originalHints = [];
     // Create an array of the current Choice objects in the database
     foreach ($originalInterQCM->getChoices() as $choice) {
         $originalChoices[] = $choice;
     }
     foreach ($originalInterQCM->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()) {
             $this->onSuccessUpdate($this->form->getData(), $originalChoices, $originalHints);
             return true;
         }
     }
     return false;
 }