$entityManager->
flush();
// As of Shopware 4.1.3 clearing the cache via event is possible. As this is quite slow, however,
// this function is optional and disabled by default.
$clearCache =
$this->
getConfig()->
getByNamespace('SwagMultiEdit', 'clearCache', false
);
if (!
$clearCache) { return;
} // Notify event - you might want register for this in order to clear the cache?
foreach ($this->
getDqlHelper()->
getIdForForeignEntity('article',
$detailIds) as $productId) { $this->
getDqlHelper()->
getEventManager()->
notify( 'Shopware_Plugins_HttpCache_InvalidateCacheId',
['subject' =>
$this, 'cacheId' => 'a' .
$productId] );
} } /**
* Batch processes a given queue
*
* @param int $queueId
*
* @throws RuntimeException
*
* @return array{totalCount: int, remaining: int, done: bool, processed: int}
*/