Skip to content

Commit

Permalink
PAC-309: compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenza-ya committed Sep 5, 2024
1 parent 3d52bc0 commit e5d97d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Observers/EeStoreWebsiteValidatorObserver.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* TechDivision\Import\Callbacks\ArrayValidatorCallback
* TechDivision\Import\Product\Ee\Observers\StoreWebsiteValidatorObserver
*
* PHP version 7
*
Expand All @@ -19,7 +19,7 @@
use TechDivision\Import\Product\Utils\MemberNames;

/**
* storeview validator callback implementation.
* Store view validator implementation.
*
* @author MET <[email protected]>
* @copyright 2024 TechDivision GmbH <[email protected]>
Expand All @@ -32,10 +32,10 @@ class EeStoreWebsiteValidatorObserver extends StoreWebsiteValidatorObserver
/**
* @return void
*/
public function setLastEntityRowId(): void
public function setLastEntityRowId($sku): void
{
if (!$this->hasBeenProcessed($this->getValue(ColumnKeys::SKU))) {
$this->entity = $this->loadProduct($this->getValue(MemberNames::SKU));
if (!$this->hasBeenProcessed($sku)) {
$this->entity = $this->loadProduct($sku);
$this->setLastEntityId($this->entity[MemberNames::ROW_ID]);
$this->lastEntityId = $this->getLastEntityId();
}
Expand Down

0 comments on commit e5d97d2

Please sign in to comment.