Skip to content

Commit 05e15ec

Browse files
dissociate old taxon in case of category removal on Akeneo
1 parent ca82868 commit 05e15ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Processor/Product/TaxonsProcessor.php

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function __construct(
2828

2929
public function process(ProductInterface $product, array $resource): void
3030
{
31+
$product->getProductTaxons()->clear();
3132
$taxonCodes = array_unique($resource['categories']);
3233

3334
foreach ($taxonCodes as $taxonCode) {

0 commit comments

Comments
 (0)