ソースを参照

Bug [Backend] Duplication fiche sur un autre marchand #204

feature/symfony6.1
Fab 1年前
コミット
bce3d69b6e
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      Component/EntityComponent.php

+ 2
- 2
Component/EntityComponent.php ファイルの表示

@@ -70,7 +70,7 @@ class EntityComponent

$this->eventDispatcher->dispatch(new EntityComponentEvent($newEntity), EntityComponentEvent::DUPLICATE_EVENT);
//Ne pas utiliser create ici! Sinon pour certaine entité comme ProductFamily on réajoute un orginProduct
$this->entityManager->persist($newEntity);
$this->entityManager->create($newEntity, false);

return $newEntity;
}
@@ -110,4 +110,4 @@ class EntityComponent
}
return $entity;
}
}
}

読み込み中…
キャンセル
保存