public function findAllExcept(array $excludedUser)
    {
        $dql = '
            SELECT u FROM Claroline\CoreBundle\Entity\User u
            WHERE u NOT IN (:userIds)
            AND u.isRemoved = false
        ';
        $query = $this->_em->createQuery($dql);
        $query->setParameter('userIds', $excludedUser);

        return $query->getResult();
    }
public function findAllExcept(array $excludedUser)
    {
        $dql = '
            SELECT u FROM Claroline\CoreBundle\Entity\User u
            WHERE u NOT IN (:userIds)
            AND u.isRemoved = false
        ';
        $query = $this->_em->createQuery($dql);
        $query->setParameter('userIds', $excludedUser);

        return $query->getResult();
    }
public function findAllExcept ( array $ excludedUser ) { $ dql = '
            SELECT u FROM Claroline\CoreBundle\Entity\User u
            WHERE u NOT IN (:userIds)
            AND u.isRemoved = false
        ' ; $ query = $ this -> _em -> createQuery ( $ dql ) ; $ query -> setParameter ( 'userIds' , $ excludedUser ) ; return $ query -> getResult ( ) ; }
Returns all the users except a given one.

@param array $excludedUser

@return User[]
Returns all the users except a given one .