{"action":"created","issue":{"url":"https://api.github.com/repos/geonomad-consulting/stdm/issues/22","repository_url":"https://api.github.com/repos/geonomad-consulting/stdm","labels_url":"https://api.github.com/repos/geonomad-consulting/stdm/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/geonomad-consulting/stdm/issues/22/comments","events_url":"https://api.github.com/repos/geonomad-consulting/stdm/issues/22/events","html_url":"https://github.com/geonomad-consulting/stdm/issues/22","id":169070236,"number":22,"title":"Incorrect supporting document relation","user":{"login":"wondie","id":9709624,"avatar_url":"https://avatars.githubusercontent.com/u/9709624?v=3","gravatar_id":"","url":"https://api.github.com/users/wondie","html_url":"https://github.com/wondie","followers_url":"https://api.github.com/users/wondie/followers","following_url":"https://api.github.com/users/wondie/following{/other_user}","gists_url":"https://api.github.com/users/wondie/gists{/gist_id}","starred_url":"https://api.github.com/users/wondie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wondie/subscriptions","organizations_url":"https://api.github.com/users/wondie/orgs","repos_url":"https://api.github.com/users/wondie/repos","events_url":"https://api.github.com/users/wondie/events{/privacy}","received_events_url":"https://api.github.com/users/wondie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geonomad-consulting/stdm/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":{"login":"geonomad-consulting","id":17067856,"avatar_url":"https://avatars.githubusercontent.com/u/17067856?v=3","gravatar_id":"","url":"https://api.github.com/users/geonomad-consulting","html_url":"https://github.com/geonomad-consulting","followers_url":"https://api.github.com/users/geonomad-consulting/followers","following_url":"https://api.github.com/users/geonomad-consulting/following{/other_user}","gists_url":"https://api.github.com/users/geonomad-consulting/gists{/gist_id}","starred_url":"https://api.github.com/users/geonomad-consulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geonomad-consulting/subscriptions","organizations_url":"https://api.github.com/users/geonomad-consulting/orgs","repos_url":"https://api.github.com/users/geonomad-consulting/repos","events_url":"https://api.github.com/users/geonomad-consulting/events{/privacy}","received_events_url":"https://api.github.com/users/geonomad-consulting/received_events","type":"User","site_admin":false},"assignees":[{"login":"geonomad-consulting","id":17067856,"avatar_url":"https://avatars.githubusercontent.com/u/17067856?v=3","gravatar_id":"","url":"https://api.github.com/users/geonomad-consulting","html_url":"https://github.com/geonomad-consulting","followers_url":"https://api.github.com/users/geonomad-consulting/followers","following_url":"https://api.github.com/users/geonomad-consulting/following{/other_user}","gists_url":"https://api.github.com/users/geonomad-consulting/gists{/gist_id}","starred_url":"https://api.github.com/users/geonomad-consulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geonomad-consulting/subscriptions","organizations_url":"https://api.github.com/users/geonomad-consulting/orgs","repos_url":"https://api.github.com/users/geonomad-consulting/repos","events_url":"https://api.github.com/users/geonomad-consulting/events{/privacy}","received_events_url":"https://api.github.com/users/geonomad-consulting/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-03T07:55:18Z","updated_at":"2016-08-04T04:00:04Z","closed_at":"2016-08-04T03:59:57Z","body":"I think the reason why entity supporting documents are not created is because of incorrect assignment. See the following relation. \r\n\r\n`<EntityRelation displayColumns=\"\" child=\"spatial_unit_supporting_document\" parent=\"spatial_unit\" name=\"fk_ba_check_spatial_unit_id_ba_spatial_unit_supporting_document_spatial_unit\" parentColumn=\"id\" childColumn=\"spatial_unit\"/>`\r\nIt should have been\r\n`<EntityRelation displayColumns=\"\" child=\"spatial_unit_supporting_document\" parent=\"spatial_unit\" name=\"fk_ba_spatial_unit_id_ba_spatial_unit_supporting_document_spatial_unit_id\" parentColumn=\"id\" childColumn=\"spatial_unit_id\"/>`\r\n\r\nThe relation name and the childColumn was incorrect. "},"comment":{"url":"https://api.github.com/repos/geonomad-consulting/stdm/issues/comments/237446480","html_url":"https://github.com/geonomad-consulting/stdm/issues/22#issuecomment-237446480","issue_url":"https://api.github.com/repos/geonomad-consulting/stdm/issues/22","id":237446480,"user":{"login":"geonomad-consulting","id":17067856,"avatar_url":"https://avatars.githubusercontent.com/u/17067856?v=3","gravatar_id":"","url":"https://api.github.com/users/geonomad-consulting","html_url":"https://github.com/geonomad-consulting","followers_url":"https://api.github.com/users/geonomad-consulting/followers","following_url":"https://api.github.com/users/geonomad-consulting/following{/other_user}","gists_url":"https://api.github.com/users/geonomad-consulting/gists{/gist_id}","starred_url":"https://api.github.com/users/geonomad-consulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geonomad-consulting/subscriptions","organizations_url":"https://api.github.com/users/geonomad-consulting/orgs","repos_url":"https://api.github.com/users/geonomad-consulting/repos","events_url":"https://api.github.com/users/geonomad-consulting/events{/privacy}","received_events_url":"https://api.github.com/users/geonomad-consulting/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T04:00:04Z","updated_at":"2016-08-04T04:00:04Z","body":"This issue has been fixed by this [commit](https://github.com/geonomad-consulting/stdm/commit/a57e2840a5bcc376cac1eaf4fde0d30b3fc424bf)"}}
{"actor":{"display_login":"geonomad-consulting"}}