{"action":"opened","issue":{"url":"https://api.github.com/repos/contentful/contentful-management.objc/issues/6","labels_url":"https://api.github.com/repos/contentful/contentful-management.objc/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/contentful/contentful-management.objc/issues/6/comments","events_url":"https://api.github.com/repos/contentful/contentful-management.objc/issues/6/events","html_url":"https://github.com/contentful/contentful-management.objc/issues/6","id":57782961,"number":6,"title":"Improve creation of relationships","user":{"login":"neonichu","id":118992,"avatar_url":"https://avatars.githubusercontent.com/u/118992?v=3","gravatar_id":"","url":"https://api.github.com/users/neonichu","html_url":"https://github.com/neonichu","followers_url":"https://api.github.com/users/neonichu/followers","following_url":"https://api.github.com/users/neonichu/following{/other_user}","gists_url":"https://api.github.com/users/neonichu/gists{/gist_id}","starred_url":"https://api.github.com/users/neonichu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonichu/subscriptions","organizations_url":"https://api.github.com/users/neonichu/orgs","repos_url":"https://api.github.com/users/neonichu/repos","events_url":"https://api.github.com/users/neonichu/events{/privacy}","received_events_url":"https://api.github.com/users/neonichu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-16T09:44:24Z","updated_at":"2015-02-16T09:44:24Z","closed_at":null,"body":"Currently, it is quite a manual process:\r\n\r\n```\r\nCMAEntry* entry1 = ...;\r\nCMAEntry* entry2 = ...;\r\n[entry1 setValue:@{ @\"sys\": @{ @\"type\": @\"Link\", @\"linkType\": @\"Entry\", @\"id\": entry2.identifier } } forFieldWithName:@\"linkField\"];\r\n```\r\n\r\nWe could just allow CMAEntry or CMAAsset values as well as arrays of them in values and convert them to link dictionaries in `CMASanitizeParameterDictionaryForJSON()`."}}