public function enableForAllStoreViews() { /* delete all store views data except admin */ $entity = Cfg::ENTITY_MAGE_CATALOG_CATEGORY_EAV_INT; $where = Cfg::E_CATCAT_EAV_INT_STORE_ID . '>' . self::DEF_STORE_VIEW_ID_ADMIN; $this->repoGeneric->deleteEntity($entity, $where); /* enable all categories */ $bind = [Cfg::E_CATCAT_EAV_INT_VALUE => 1]; $where = Cfg::E_CATCAT_EAV_INT_ATTR_ID . '=' . self::DEF_CATEGORY_EAV_ID_IS_ACTIVE; $this->repoGeneric->updateEntity($entity, $bind, $where); }