How can I get every user who has exactly ROLE_USER #45502
Unanswered
AbdelilahDerfoufi
asked this question in
Q&A
Replies: 2 comments 9 replies
-
We add repository method:
|
Beta Was this translation helpful? Give feedback.
9 replies
-
I covered this topic in a blog post a while back: https://endelwar.it/2020/08/filter-users-by-role-in-symfony-5/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used querybuilder method to get all the users who has ROLE_USER as a role for an admin dashboard.
Here is the method I wrote :
`{
$role = 'ROLE_USER';
`
Beta Was this translation helpful? Give feedback.
All reactions