Create a ressource with multiple relationships
The docs specifiy how to create a post -> comments relationship (so in the same direction as the
But I couldn't find how to create a ressource that has multiple
With the post -> comments example,
How would you create a comment that has more that one required relationship?
Example:
comment_created_by -> User
comment_post -> Post
comment_category (?) -> CommentCategory
has_many relationshipBut I couldn't find how to create a ressource that has multiple
belongs_toWith the post -> comments example,
How would you create a comment that has more that one required relationship?
Example:
comment_created_by -> User
comment_post -> Post
comment_category (?) -> CommentCategory
Solution
And write the ids. Or you can use the
argument + manage_relationship pattern which you can see in the relationships guide