Cycle ManyToMany relation is not working #449
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I just want to inform you to know that the ManyToMany relation is not working correctly even in this demo application.
(Or I use it wrong, because I can not solve this issue for days.)
I want to store multiple tags for posts. These tags maybe new, maybe already exists in the database. If it is new, then it works great. But if I want to assing an existing Tag to a new Post, it fails.
Related issue in Cycle ORM: cycle/orm#329
I also updated the tests for this demo app, because I did not understand how it could work here. But it is not working.