You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add O2M relation with the collection itself, selecting the PK as FK
You can't have it save the foreign key on top of the primary key field, as that would kill the current item (as you would replace the current parent item's ID with the ID of the child). Add a new field to use as the foreign key instead (something like a parent_id field 👍🏻 )
Preflight Checklist
Describe the Bug
It is not possible to configure parent->child where child is on the same collection
To Reproduce
=> Saving the relation will result in an error (Invalid SQL)
What version of Directus are you using?
9.0.0-rc.88
What version of Node.js are you using?
official dockerhub directus image
What database are you using?
mysql
What browser are you using?
Chrome
What operating system are you using?
Armbian
How are you deploying Directus?
docker
The text was updated successfully, but these errors were encountered: