src/Services/ProductBunchProcessor.php
public function persistProduct($product, $name = null)
    {

        // persist the new entity and return the ID
        $id = $this->getProductAction()->persist($product, $name);

        // add the product to the cache, register the SKU reference as well
        $this->getProductRepository()->toCache($product[MemberNames::SKU], $product, array($product[MemberNames::SKU] => $id));

        // return the ID of the persisted product
        return $id;
    }
public function persistProduct($product, $name = null)
    {

        // persist the new entity and return the ID
        $id = $this->getProductAction()->persist($product, $name);

        // add the product to the cache, register the SKU reference as well
        $this->getProductRepository()->toCache($product[MemberNames::SKU], $product, array($product[MemberNames::SKU] => $id));

        // return the ID of the persisted product
        return $id;
    }
public function persistProduct ( $ product , $ name = null ) { // persist the new entity and return the ID $ id = $ this -> getProductAction ( ) -> persist ( $ product , $ name ) ; // add the product to the cache, register the SKU reference as well $ this -> getProductRepository ( ) -> toCache ( $ product [ MemberNames :: SKU ] , $ product , array ( $ product [ MemberNames :: SKU ] => $ id ) ) ; // return the ID of the persisted product return $ id ; }
Persist's the passed product data and return's the ID.

@param array       $product The product data to persist
@param string|null $name    The name of the prepared statement that has to be executed

@return string The ID of the persisted entity
Persist s the passed product data and return s the ID .