/** * Update attributes * * @return void */ protected function doActionUpdateAttributes() { foreach ($this->getProduct()->getCategoryProducts()->toArray() as $cp) { $categoriesToRemoveCache[] = $cp->getCategory()->getCategoryId(); } if ($categoriesToRemoveCache) { \XLite\Core\Database::getRepo('XLite\\Model\\Category')->removeProductFilterCache($categoriesToRemoveCache); } parent::doActionUpdateAttributes(); }
/** * Update attributes * * @return void */ protected function doActionUpdateAttributes() { $this->getProduct()->checkVariants(); \XLite\Core\Database::getEM()->clear(); parent::doActionUpdateAttributes(); \XLite\Core\Database::getEM()->clear(); $this->getProduct()->checkVariants(); }