Browse Source

Correctif OrderUtils : addOrderProduct

feature/export_comptable
Guillaume 4 years ago
parent
commit
5754577908
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      ShopBundle/Services/OrderUtils.php

+ 4
- 1
ShopBundle/Services/OrderUtils.php View File

if (!$updated) { if (!$updated) {
$orderShop->addOrderProduct($orderProductAdd); $orderShop->addOrderProduct($orderProductAdd);


$this->em->persist($orderProductReductionCatalog);
if(isset($orderProductReductionCatalog)) {
$this->em->persist($orderProductReductionCatalog);
}

$this->em->persist($orderProductAdd); $this->em->persist($orderProductAdd);
$this->em->persist($orderShop); $this->em->persist($orderShop);
} }

Loading…
Cancel
Save