public function getDraftCollectionAction()
    {
        $contents = $this->getEntityManager()
            ->getRepository('BackBee\ClassContent\Revision')
            ->getAllDrafts($this->getApplication()->getBBUserToken())
        ;

        $contents = $this->sortDraftCollection($contents);

        return $this->addContentRangeHeadersToResponse($this->createJsonResponse($contents), $contents, 0);
    }
public function getDraftCollectionAction()
    {
        $contents = $this->getEntityManager()
            ->getRepository('BackBee\ClassContent\Revision')
            ->getAllDrafts($this->getApplication()->getBBUserToken())
        ;

        $contents = $this->sortDraftCollection($contents);

        return $this->addContentRangeHeadersToResponse($this->createJsonResponse($contents), $contents, 0);
    }
public function getDraftCollectionAction ( ) { $ contents = $ this -> getEntityManager ( ) -> getRepository ( 'BackBee\ClassContent\Revision' ) -> getAllDrafts ( $ this -> getApplication ( ) -> getBBUserToken ( ) ) ; $ contents = $ this -> sortDraftCollection ( $ contents ) ; return $ this -> addContentRangeHeadersToResponse ( $ this -> createJsonResponse ( $ contents ) , $ contents , 0 ) ; }
Returns all drafts of current user.

@return Symfony\Component\HttpFoundation\JsonResponse

@Rest\Security("is_fully_authenticated() & has_role('ROLE_API_USER')")
Returns all drafts of current user .