/**
* Updates product details within batch mode
*
* @param int[] $detailIds
* @param array $nestedOperations
*/
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();