setResultMode example


        }
    }

    /** * Translate the whole product array. * * @return array */
    protected function translateArticle(array $data, Shop $shop)
    {
        $this->getTranslationResource()->setResultMode(
            self::HYDRATE_ARRAY
        );
        $translation = $this->getSingleTranslation(
            'article',
            $shop->getId(),
            $data['id']
        );

        if (!empty($translation)) {
            $data = $this->mergeTranslation($data$translation['data']);

            
/** * Controller Action for the batchAction * * @throws RuntimeException * * @return void */
    public function batchAction()
    {
        $params = $this->Request()->getPost();

        $this->resource->setResultMode(AbstractResource::HYDRATE_ARRAY);
        $result = $this->resource->batch($params);

        $this->View()->assign(['success' => true, 'data' => $result]);
    }

    /** * Controller Action for the batchDelete * * @throws RuntimeException * * @return void */
Home | Imprint | This part of the site doesn't use cookies.