for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Product\Variant\Ee\Observers\EeCleanUpVariantProductRelationObserver
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Martin Eisenführer <[email protected]>
* @copyright 2020 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/techdivision/import-product-variant
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Product\Variant\Ee\Observers;
use TechDivision\Import\Product\Variant\Observers\CleanUpVariantProductRelationObserver;
* Observer that cleaned up a product's variant information.
class EeCleanUpVariantProductRelationObserver extends CleanUpVariantProductRelationObserver
{
* Return's the PK to create the product => variant relation.
* @return integer The PK to create the relation with
protected function getLastPrimaryKey()
return $this->getLastRowId();
}
* Return's the row ID of the product that has been created recently.
* @return string The row Id
protected function getLastRowId()
return $this->getSubject()->getLastRowId();