You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unacceptable type of value for to-many relationship: property = "things"; desired type = NSSet; given type = CDQTargetedQuery; value = #CDQ::CDQTargetedQuery:0x11a11c860.'
Got the same error with a different type when calling .array on the query
Ideally, CDQ would recognize that I'm trying to set a to-many relationship with a query or an array and automatically turn it into an NSSet for me.
The text was updated successfully, but these errors were encountered:
It may not be possible to detect this automatically because of the way NSManagedObjects work. We might be able to exploit RubyMotion's translation of thing=() into setThing(), but I'm not sure if it will work.
I ran into a problem where I'm having to set a to-many relationship with the following code:
The code above works.
This throws an error:
Got the same error with a different type when calling
.array
on the queryIdeally, CDQ would recognize that I'm trying to set a to-many relationship with a query or an array and automatically turn it into an NSSet for me.
The text was updated successfully, but these errors were encountered: