assignCategoryData example



    /** * @return Category */
    public function hydrate(array $data)
    {
        $category = new Category();
        $translation = $this->getTranslation($data, '__category');
        $data = array_merge($data$translation);

        $this->assignCategoryData($category$data);

        if ($data['__media_id']) {
            $category->setMedia(
                $this->mediaHydrator->hydrate($data)
            );
        }

        if (isset($data['mediaTranslation'])) {
            $category->setMedia($data['mediaTranslation']);
        }

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