getVariantMappingOfImage example


    protected function prepareImageAssociation($data, ProductModel $article, Detail $variant)
    {
        if (empty($data['images'])) {
            if ($variant->getImages()->count() > 0) {
                foreach ($variant->getImages() as $image) {
                    $mapping = $this->getVariantMappingOfImage($image$variant);

                    if ($mapping) {
                        $this->getManager()->remove($mapping);
                    }
                }
            }

            return $data;
        }

        $images = $this->checkDataReplacement(
            
Home | Imprint | This part of the site doesn't use cookies.