How can I check if the user has a role for one to one relationship?

后端 未结 0 1362
情深已故
情深已故 2021-01-29 03:11

I have an application with User and Role model and a one to one relationship between them. How can I check if the user has a role. I am getting an SQLSTATE[42S22] e

相关标签:
回答
  • 消灭零回复
提交回复
热议问题