/** * Change a product feature * * @param FeatureAvUpdateEvent $event * @param $eventName * @param EventDispatcherInterface $dispatcher */ public function update(FeatureAvUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher) { if (null !== ($feature = FeatureAvQuery::create()->findPk($event->getFeatureAvId()))) { $feature->setDispatcher($dispatcher)->setLocale($event->getLocale())->setTitle($event->getTitle())->setDescription($event->getDescription())->setChapo($event->getChapo())->setPostscriptum($event->getPostscriptum())->save(); $event->setFeatureAv($feature); } }