Skip to content

Commit

Permalink
dissociate old taxon in case of category removal on Akeneo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGrimmChester committed Mar 25, 2024
1 parent 073f48a commit c674597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Processor/Product/TaxonsProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct(

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

foreach ($taxonCodes as $taxonCode) {
Expand Down

0 comments on commit c674597

Please sign in to comment.