getConfiguratorSetQuery example

$configuratorSet->fromArray($data);
        $this->get('models')->persist($configuratorSet);
        $this->get('models')->flush();

        if (!empty($productId)) {
            $product = $this->get('models')->find(Product::class$productId);
            $product->setConfiguratorSet($configuratorSet);
            $this->get('models')->persist($product);
            $this->get('models')->flush();
        }

        $data = $this->getRepository()->getConfiguratorSetQuery($configuratorSet->getId())->getArrayResult();
        $this->View()->assign([
            'success' => true,
            'data' => $data,
        ]);
    }

    /** * Event listener function of the backend product module. Fired when the user want to accept the * variant data of the main detail to the selected variant(s). */
    public function acceptMainDataAction()
    {
Home | Imprint | This part of the site doesn't use cookies.