public function updateDetails($detailIds,
$nestedOperations) { $entityManager =
$this->
getDqlHelper()->
getEntityManager();
$nestedOperations =
$this->
getDqlHelper()->
groupOperations($nestedOperations);
foreach ($nestedOperations as $prefix =>
$operations) { if (empty($prefix)) { continue;
} $this->
applyOperations($operations,
$detailIds);
} $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;
}