Browse Source

Correctif mineur

packProduct
Fabien Normand 3 years ago
parent
commit
4b725aa2b8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Builder/Order/OrderShopBuilder.php

+ 2
- 0
Builder/Order/OrderShopBuilder.php View File

OrderShopInterface $orderShop2, OrderShopInterface $orderShop2,
$persist = true $persist = true
): OrderShopInterface { ): OrderShopInterface {
$this->entityManager->refresh($orderShop1);
$this->entityManager->refresh($orderShop2);
if ($orderShop1 && $orderShop2) { if ($orderShop1 && $orderShop2) {
foreach ($orderShop2->getOrderProducts() as $orderProduct) { foreach ($orderShop2->getOrderProducts() as $orderProduct) {
$orderProductAlreadyInCart = $this->orderShopSolver->hasOrderProductAlreadyInCart($orderShop1, $orderProduct); $orderProductAlreadyInCart = $this->orderShopSolver->hasOrderProductAlreadyInCart($orderShop1, $orderProduct);

Loading…
Cancel
Save