prepareMediaAssociatedData example



            return;
        }

        $categoryModel->setStream(null);
        if (isset($params['streamId'])) {
            $params['stream'] = $this->em->find(ProductStream::class(int) $params['streamId']);
        }

        $params = $this->prepareCustomerGroupsAssociatedData($params);
        $params = $this->prepareMediaAssociatedData($params);

        unset($params['articles']$params['emotion']$params['imagePath']$params['parentId']$params['parent']);

        if (!\array_key_exists('template', $params)) {
            $params['template'] = null;
        }

        $params['changed'] = new DateTime();
        $categoryModel->fromArray($params);
        $categoryModel->setShops($this->Request()->getParam('shops'));
        $this->em->persist($categoryModel);
        
Home | Imprint | This part of the site doesn't use cookies.