protected function _actionAddphoto($context)
    {
        $this->getItem()->addPhoto($this->photo);
        $context->response->setRedirect(route($this->getItem()->getURL()));

        return $this->getItem();
    }
protected function _actionAddphoto($context)
    {
        $this->getItem()->addPhoto($this->photo);
        $context->response->setRedirect(route($this->getItem()->getURL()));

        return $this->getItem();
    }
protected function _actionAddphoto ( $ context ) { $ this -> getItem ( ) -> addPhoto ( $ this -> photo ) ; $ context -> response -> setRedirect ( route ( $ this -> getItem ( ) -> getURL ( ) ) ) ; return $ this -> getItem ( ) ; }
Adds a photos to an set.

@return object ComPhotosDomainEntitySet

@param object POST data
Adds a photos to an set .