-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
* | ||
|
@@ -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]> | ||
|
@@ -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(); | ||
} | ||
|