belongsToMany column cannot be null
Hi
I have a database, which is defined by external sources, so structure cannot be amended.
I have a
I have setup the relations, and doing a get on users and groups with the relation shows the related results.
Now, I have a RelationManager for Groups on the User resource, but when I try to attach groups, I just get an error that "Column 'value' cannot be null".
Has anyone come across this in the past, and if so, know how I can solve this. I suspect it's because of the non-standard column names, but I've got the relationships working fine.
I have a database, which is defined by external sources, so structure cannot be amended.
I have a
users table, which links to a reply table using username field on both tables. Then on the reply table is a value table, which links to groups.nameI have setup the relations, and doing a get on users and groups with the relation shows the related results.
Now, I have a RelationManager for Groups on the User resource, but when I try to attach groups, I just get an error that "Column 'value' cannot be null".
Has anyone come across this in the past, and if so, know how I can solve this. I suspect it's because of the non-standard column names, but I've got the relationships working fine.