Getting an error when associating role to a user for one to many relationship #36082
Unanswered
toxifiedmatrix
asked this question in
Q&A
Replies: 1 comment
-
Everything looks good - except that you are trying to insert Take a look at your select dropdown input. What's the value for each role? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a one to many relationship between
users
androles
. I have three rolesadministrator
,employee
andclient
. I am unable to associate the user with a role.Example:
When I am updating a user with a role
administrator
, I am successful in editing and saving the role toemployee
andclient
, but when I click save when the default role value remains unchanged i.e.administrator
, it throws me an SQLSTATE[22007] error.Please spare some time to have a look below.
Beta Was this translation helpful? Give feedback.
All reactions