79078495

Date: 2024-10-11 13:52:53
Score: 1.5
Natty:
Report link

I don't know what your Models are developed but i assumed you don't have setted up well your database,In order to have a hasOne association you must have an 'user_id' on the Admins table who points at 'id' on the Users table (foreign key). On the other and you must have an 'admin_id' on Users table pointing to 'id' on Admins table (foreign key).

Documentation :

HasOne Associations

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michemura