I want to return user who have ROLE_ADMIN
and ROLE_USER
I have did this in repository :
return $this->createQueryBuilder('u')
->where('u.roles IN (:val)')
->setParameter('val','["ROLE_ADMIN","ROLE_USER"]')
->getQuery()
->getResult();
But nothing is returned... How to solve this probleme?
ps: I have a user with ROLES : ROLE_ADMIN and ROLE_USER