createSet example

public function __construct(AttributeHydrator $attributeHydrator, MediaHydrator $mediaHydrator)
    {
        $this->attributeHydrator = $attributeHydrator;
        $this->mediaHydrator = $mediaHydrator;
    }

    /** * @return Set */
    public function hydrate(array $data)
    {
        $set = $this->createSet($data[0] ?? []);
        $set->setGroups($this->hydrateGroups($data));

        return $set;
    }

    /** * @return Group[] */
    public function hydrateGroups(array $data)
    {
        $groups = [];

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