-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PAC-894 Use 'raw_id' instead of 'entity_id' for an enterprise edition
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2024 TechDivision GmbH <[email protected]> - TechDivision GmbH | ||
* All rights reserved | ||
* | ||
* This product includes proprietary software developed at TechDivision GmbH, Germany | ||
* For more information see https://www.techdivision.com | ||
* | ||
* To obtain a valid license for using this software, please contact us at | ||
* [email protected] | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace TechDivision\Import\Product\Grouped\Ee\Observers; | ||
|
||
use TechDivision\Import\Product\Grouped\Observers\CleanUpGroupedProductRelationObserver; | ||
|
||
/** | ||
* @copyright Copyright (c) 2024 TechDivision GmbH <[email protected]> - TechDivision GmbH | ||
* @link http://www.techdivision.com | ||
* @author MET <[email protected]> | ||
*/ | ||
class EeCleanUpGroupedObserver extends CleanUpGroupedProductRelationObserver | ||
{ | ||
/** | ||
* Return's the PK to create the grouped product => child relation. | ||
* | ||
* @return int The PK to create the relation with | ||
*/ | ||
protected function getLastPrimaryKey(): int | ||
{ | ||
return $this->getSubject()->getLastRowId(); | ||
} | ||
} |
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