{"action":"created","issue":{"url":"https://api.github.com/repos/hyperoslo/Sync/issues/108","labels_url":"https://api.github.com/repos/hyperoslo/Sync/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/hyperoslo/Sync/issues/108/comments","events_url":"https://api.github.com/repos/hyperoslo/Sync/issues/108/events","html_url":"https://github.com/hyperoslo/Sync/issues/108","id":90215230,"number":108,"title":"I need help getting started with your great Library","user":{"login":"Gerungofulus","id":9848525,"avatar_url":"https://avatars.githubusercontent.com/u/9848525?v=3","gravatar_id":"","url":"https://api.github.com/users/Gerungofulus","html_url":"https://github.com/Gerungofulus","followers_url":"https://api.github.com/users/Gerungofulus/followers","following_url":"https://api.github.com/users/Gerungofulus/following{/other_user}","gists_url":"https://api.github.com/users/Gerungofulus/gists{/gist_id}","starred_url":"https://api.github.com/users/Gerungofulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gerungofulus/subscriptions","organizations_url":"https://api.github.com/users/Gerungofulus/orgs","repos_url":"https://api.github.com/users/Gerungofulus/repos","events_url":"https://api.github.com/users/Gerungofulus/events{/privacy}","received_events_url":"https://api.github.com/users/Gerungofulus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-06-22T21:20:48Z","updated_at":"2015-06-28T17:12:29Z","closed_at":"2015-06-23T19:24:59Z","body":"Hi there!\r\n\r\nI am sorry for bothering you but I tried to get this running for two hours right now and I seem to be stuck.\r\n\r\nI am using the following setup in CoreData\r\n![bildschirmfoto 2015-06-22 um 23 06 48](https://cloud.githubusercontent.com/assets/9848525/8293067/6334dc44-1933-11e5-84eb-37e48845642d.png)\r\n\r\nand I have an [NSDictionary] array (that I formed out of a json response). \r\n(I don't get to choose the json response and I get the same error using the json response instead of the array so I figured that I could go on in using the array.)\r\n```Swift\r\n[{\r\n    id = 224f02078c4278c2;\r\n    name = \"Pascal Blunk\";\r\n    ownCollection = 0;\r\n    owner =     {\r\n        id = 32492cc981632817;\r\n        name = \"Pascal Blunk\";\r\n    };\r\n}, {\r\n    id = e393ed8b0c1368fc;\r\n    name = pascal7;\r\n    ownCollection = 1;\r\n    owner =     {\r\n        id = 739b7ba364ddd874;\r\n        name = pascal7;\r\n    };\r\n    users =     (\r\n        739b7ba364ddd874\r\n    );\r\n}]\r\n```\r\nEvery item in that array is a specific collection. The owner property is an object of type User. Users is an array of user_ids. I used to fill in the CoreData myself but now I want to switch to your powerful code. When primitively calling Sync.changes with the array given I get the following stack trace\r\n```\r\n2015-06-22 22:54:19.615 Grocli[11780:3544854] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<__NSCFString 0x7ff821c5dcb0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key id.'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x000000010dd31c65 __exceptionPreprocess + 165\r\n\t1   libobjc.A.dylib                     0x000000010d9cabb7 objc_exception_throw + 45\r\n\t2   CoreFoundation                      0x000000010dd318a9 -[NSException raise] + 9\r\n\t3   Foundation                          0x000000010d40582a -[NSObject(NSKeyValueCoding) valueForUndefinedKey:] + 226\r\n\t4   Foundation                          0x000000010d35eb23 -[NSObject(NSKeyValueCoding) valueForKey:] + 251\r\n\t5   Foundation                          0x000000010d35e914 -[NSArray(NSKeyValueCoding) valueForKey:] + 437\r\n\t6   Grocli                              0x000000010cd08bf7 -[NSManagedObject(Sync) sync_processToManyRelationship:usingDictionary:andParent:dataStack:] + 1095\r\n\t7   Grocli                              0x000000010cd083de -[NSManagedObject(Sync) sync_processRelationshipsUsingDictionary:andParent:dataStack:error:] + 606\r\n\t8   Grocli                              0x000000010cd0ac2c __78+[Sync changes:inEntityNamed:predicate:parent:inContext:dataStack:completion:]_block_invoke + 172\r\n\t9   Grocli                              0x000000010ccfdcc6 +[DATAFilter changes:inEntityNamed:localKey:remoteKey:context:predicate:inserted:updated:] + 1942\r\n\t10  Grocli                              0x000000010cd0a934 +[Sync changes:inEntityNamed:predicate:parent:inContext:dataStack:completion:] + 1748\r\n\t11  Grocli                              0x000000010cd09a99 __61+[Sync changes:inEntityNamed:predicate:dataStack:completion:]_block_invoke + 121\r\n\t12  Grocli                              0x000000010cd014ba __43-[DATAStack performInNewBackgroundContext:]_block_invoke + 58\r\n\t13  CoreData                            0x000000010cfd7a79 developerSubmittedBlockToNSManagedObjectContextPerform + 201\r\n\t14  libdispatch.dylib                   0x0000000110a7c614 _dispatch_client_callout + 8\r\n\t15  libdispatch.dylib                   0x0000000110a636a7 _dispatch_queue_drain + 2176\r\n\t16  libdispatch.dylib                   0x0000000110a62cc0 _dispatch_queue_invoke + 235\r\n\t17  libdispatch.dylib                   0x0000000110a663b9 _dispatch_root_queue_drain + 1359\r\n\t18  libdispatch.dylib                   0x0000000110a67b17 _dispatch_worker_thread3 + 111\r\n\t19  libsystem_pthread.dylib             0x0000000110de9637 _pthread_wqthread + 729\r\n\t20  libsystem_pthread.dylib             0x0000000110de740d start_wqthread + 13\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n```\r\nI am not quite sure, but I would guess, that the code fails when it comes to handling the array 'users' since there is no 'id' field given. So I basically have two questions: a) Do you think that this is the problem and b) Can I somehow tell your code that it should handle all items in the users array as IDs?"},"comment":{"url":"https://api.github.com/repos/hyperoslo/Sync/issues/comments/116299999","html_url":"https://github.com/hyperoslo/Sync/issues/108#issuecomment-116299999","issue_url":"https://api.github.com/repos/hyperoslo/Sync/issues/108","id":116299999,"user":{"login":"3lvis","id":1088217,"avatar_url":"https://avatars.githubusercontent.com/u/1088217?v=3","gravatar_id":"","url":"https://api.github.com/users/3lvis","html_url":"https://github.com/3lvis","followers_url":"https://api.github.com/users/3lvis/followers","following_url":"https://api.github.com/users/3lvis/following{/other_user}","gists_url":"https://api.github.com/users/3lvis/gists{/gist_id}","starred_url":"https://api.github.com/users/3lvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3lvis/subscriptions","organizations_url":"https://api.github.com/users/3lvis/orgs","repos_url":"https://api.github.com/users/3lvis/repos","events_url":"https://api.github.com/users/3lvis/events{/privacy}","received_events_url":"https://api.github.com/users/3lvis/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T17:12:29Z","updated_at":"2015-06-28T17:12:29Z","body":"@Gerungofulus got it! I made a task for it. https://github.com/hyperoslo/Sync/issues/109 :)"}}