public function removeUsersAction($id, $class, Request $request)
    {
        $object = $this->find($class, $id);
        $users = $this->decodeIdsString($request, 'Claroline\CoreBundle\Entity\User');
        $this->crud->patch($object, 'user', Crud::COLLECTION_REMOVE, $users);

        return new JsonResponse(
            $this->serializer->serialize($object)
        );
    }
public function removeUsersAction($id, $class, Request $request)
    {
        $object = $this->find($class, $id);
        $users = $this->decodeIdsString($request, 'Claroline\CoreBundle\Entity\User');
        $this->crud->patch($object, 'user', Crud::COLLECTION_REMOVE, $users);

        return new JsonResponse(
            $this->serializer->serialize($object)
        );
    }
public function removeUsersAction ( $ id , $ class , Request $ request ) { $ object = $ this -> find ( $ class , $ id ) ; $ users = $ this -> decodeIdsString ( $ request , 'Claroline\CoreBundle\Entity\User' ) ; $ this -> crud -> patch ( $ object , 'user' , Crud :: COLLECTION_REMOVE , $ users ) ; return new JsonResponse ( $ this -> serializer -> serialize ( $ object ) ) ; }
Removes users from the collection.

@EXT\Route("/{id}/user")
@EXT\Method("DELETE")

@param string  $id
@param string  $class
@param Request $request

@return JsonResponse
Removes users from the collection .