{"action":"created","issue":{"url":"https://api.github.com/repos/c2corg/v6_ui/issues/326","repository_url":"https://api.github.com/repos/c2corg/v6_ui","labels_url":"https://api.github.com/repos/c2corg/v6_ui/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/c2corg/v6_ui/issues/326/comments","events_url":"https://api.github.com/repos/c2corg/v6_ui/issues/326/events","html_url":"https://github.com/c2corg/v6_ui/issues/326","id":151326626,"number":326,"title":"Parent <-- document --> child relationship","user":{"login":"ginold","id":7814311,"avatar_url":"https://avatars.githubusercontent.com/u/7814311?v=3","gravatar_id":"","url":"https://api.github.com/users/ginold","html_url":"https://github.com/ginold","followers_url":"https://api.github.com/users/ginold/followers","following_url":"https://api.github.com/users/ginold/following{/other_user}","gists_url":"https://api.github.com/users/ginold/gists{/gist_id}","starred_url":"https://api.github.com/users/ginold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginold/subscriptions","organizations_url":"https://api.github.com/users/ginold/orgs","repos_url":"https://api.github.com/users/ginold/repos","events_url":"https://api.github.com/users/ginold/events{/privacy}","received_events_url":"https://api.github.com/users/ginold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T08:22:40Z","updated_at":"2016-04-28T08:22:13Z","closed_at":null,"body":"Associating new documents is easy : I define which one is the parent and which one is the child, and I know the possible valid associations.\r\nBut the other way is not that simple. Sometimes I want to dissociate two documents and I obtain an error 'association does not exist' because I have no way of knowing which one is the parent and which one the child. Or do I ? If so, please tell me how I can get to know this relationship.\r\n\r\nIf it's not the case, maybe one of the possible solutions would be to send two IDs like `dissociateDocuments(ID1, ID2)` and the API will try one way or the other, if the 1st one does not pass (we could do the same, calling a 2nd time the dissociate method if the 1st time is unsuccessful).\r\nOr maybe you have any better ideas?\r\n\r\nSooner or later we would need to have this information UI-side in order to determine the parent and it's children and to show it in the interface accordingly. "},"comment":{"url":"https://api.github.com/repos/c2corg/v6_ui/issues/comments/215349012","html_url":"https://github.com/c2corg/v6_ui/issues/326#issuecomment-215349012","issue_url":"https://api.github.com/repos/c2corg/v6_ui/issues/326","id":215349012,"user":{"login":"tsauerwein","id":266474,"avatar_url":"https://avatars.githubusercontent.com/u/266474?v=3","gravatar_id":"","url":"https://api.github.com/users/tsauerwein","html_url":"https://github.com/tsauerwein","followers_url":"https://api.github.com/users/tsauerwein/followers","following_url":"https://api.github.com/users/tsauerwein/following{/other_user}","gists_url":"https://api.github.com/users/tsauerwein/gists{/gist_id}","starred_url":"https://api.github.com/users/tsauerwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsauerwein/subscriptions","organizations_url":"https://api.github.com/users/tsauerwein/orgs","repos_url":"https://api.github.com/users/tsauerwein/repos","events_url":"https://api.github.com/users/tsauerwein/events{/privacy}","received_events_url":"https://api.github.com/users/tsauerwein/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T08:22:13Z","updated_at":"2016-04-28T08:22:13Z","body":"Done in https://github.com/c2corg/v6_api/pull/264"}}