prepareAssociationDataForSaving example

$params['customerGroupId'] = null;
        }
        if (empty($params['languageId'])) {
            $params['languageId'] = null;
        }

        if (!$this->_isAllowed('sqli') && !empty($params['ownFilter'])) {
            unset($params['ownFilter']);
        }

        // Save data of the category tree         $params['categories'] = $this->prepareAssociationDataForSaving('categories', Category::class$params);

        // Save data of the supplier filter         $params['suppliers'] = $this->prepareAssociationDataForSaving('suppliers', Supplier::class$params);

        // Save data of the article filter         $params['articles'] = $this->prepareAssociationDataForSaving('articles', Article::class$params);

        $productFeed = $this->setDirty($productFeed$params);
        $params['fileName'] = basename($params['fileName']);
        $productFeed->fromArray($params);

        
Home | Imprint | This part of the site doesn't use cookies.