public function saveImageSet($slug, $postValues)
    {
        $imageSetObject = ImageSetFactory::createImageSetFromPostValues($postValues);

        $imageSet = $this->repository->imageSet;
        foreach ($imageSet as $key => $set) {
            if ($set->slug == $slug) {
                $imageSet[$key] = $imageSetObject;
            }
        }
        $this->repository->imageSet = $imageSet;
        $this->save();
    }
public function saveImageSet($slug, $postValues)
    {
        $imageSetObject = ImageSetFactory::createImageSetFromPostValues($postValues);

        $imageSet = $this->repository->imageSet;
        foreach ($imageSet as $key => $set) {
            if ($set->slug == $slug) {
                $imageSet[$key] = $imageSetObject;
            }
        }
        $this->repository->imageSet = $imageSet;
        $this->save();
    }
public function saveImageSet ( $ slug , $ postValues ) { $ imageSetObject = ImageSetFactory :: createImageSetFromPostValues ( $ postValues ) ; $ imageSet = $ this -> repository -> imageSet ; foreach ( $ imageSet as $ key => $ set ) { if ( $ set -> slug == $ slug ) { $ imageSet [ $ key ] = $ imageSetObject ; } } $ this -> repository -> imageSet = $ imageSet ; $ this -> save ( ) ; }
Save Image Set by it's slug

@param $slug
@param $postValues

@throws \Exception
Save Image Set by it s slug