public function putDraftAction($type, $uid, Request $request)
    {
        $this->updateClassContentDraft($type, $uid, $request->request->all());
        $this->getEntityManager()->flush();

        return $this->createJsonResponse(null, 204);
    }
public function putDraftAction($type, $uid, Request $request)
    {
        $this->updateClassContentDraft($type, $uid, $request->request->all());
        $this->getEntityManager()->flush();

        return $this->createJsonResponse(null, 204);
    }
public function putDraftAction ( $ type , $ uid , Request $ request ) { $ this -> updateClassContentDraft ( $ type , $ uid , $ request -> request -> all ( ) ) ; $ this -> getEntityManager ( ) -> flush ( ) ; return $ this -> createJsonResponse ( null , 204 ) ; }
Updates a classcontent's draft.

@param string $type type of the class content (ex: Element/text)
@param string $uid  identifier of the class content

@return Symfony\Component\HttpFoundation\JsonResponse

@Rest\Security("is_fully_authenticated() & has_role('ROLE_API_USER')")
Updates a classcontent s draft .