-
-
Notifications
You must be signed in to change notification settings - Fork 204
cant add item to collection with many to many and many to one relationships #631
Comments
Hey @beac0n, can you share a database dump we can use to reproduce this issue? What are the relationship set to in |
directus_relations table: the junction table is users_to_locations id,collection_many,field_many,collection_one,field_one,junction_field json to add item: response: |
@beac0n Can you send a database example I can use to replicate this? |
@wellingguzman I sent it to you via slack :) |
Bug Report
Steps to Reproduce
Expected Behavior
item should be created
Actual Behavior
error:
{"error":{"code":9,"message":"Failed generating the SQL query.","query":"INSERT INTO
users(
name,
email,
role,
user_id,
locations) VALUES ('test', 'test@test.test', 'test', '2', NULL)"}}
were locations is the many-to-many relationship
and user_id is the many-to-one relationship
where locations is the many
Other Context & Screenshots
this error does NOT occure in the docker image version 2.0.8
this error does occure in the docker image version 2.0.9 and 2.0.10
Technical Details
used the docker image with mysql database
The text was updated successfully, but these errors were encountered: