I have two things: User and Role.
User has parameters: name, e-mail and role (type = Role).
I have two roles: “user” and “admin”.
What I need to achieve is: every user that signs up should be given a default role “user” automatically.
But I can’t get how to do it. I tried to search for a role with name “user” - but something wen’t wrong:
What am I doing wrong?