Example #1
0
 /**
  * Process the attributes values (fix it in future version to integrate it in the attribute form as a collection)
  *
  * @see \Thelia\Controller\Admin\AbstractCrudController::performAdditionalUpdateAction()
  */
 protected function performAdditionalUpdateAction($updateEvent)
 {
     $attr_values = $this->getRequest()->get('attribute_values', null);
     if ($attr_values !== null) {
         foreach ($attr_values as $id => $value) {
             $event = new AttributeAvUpdateEvent($id);
             $event->setTitle($value);
             $event->setLocale($this->getCurrentEditionLocale());
             $this->dispatch(TheliaEvents::ATTRIBUTE_AV_UPDATE, $event);
         }
     }
     return null;
 }