ios - CoreData fetch nested objects -
i have json contain objects each object have child object, example [ { "id": 1, "name": "obj1" }, { "id": 2, "name": "obj2" }, { "id": 3, "name": "obj3", "child": { "id": 2, "name": "obj2" } }, { "id": 4, "name": "obj4", "child": { "id": 5, "name": "obj5" } } ] so in core data have entity myobject has relation child (to itself, one), , relation parent (to many) so when try fetch object predicate like [nspredicate predicatewithformat:@"parent.@count = 0"] i got object id in [1,3,4], no id = 2 (here error) , id = 5 (here correct), because it's sets parent when it's mapped when object i...