iOS: Ordered Core Data Relationship add object crash

Originator:penrose
Number:rdar://13061101 Date Originated:22-Jan-2013
Status:Duplicate Resolved:
Product:iPhone SDK Product Version:6.1
Classification:Serious Bug Reproducible:Always
 
Summary: When you try to add an object to an ordered core data one to many relationship you will crash.

Steps to Reproduce: Create a core data model that has a Entity (Zoo) with a one to many relationship to another Entity (Animal). Make the relationship ordered. Now try to add a Lion to the Zoo [zoo addAnimalsObject:animal]. You will crash on an NSInvalidArgumentException (*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSSet intersectsSet:]: set argument is not an NSSet')

Expected Results: The object will be added to the end of the ordered set.

Actual Results: Exception thrown

Regression:

Notes:

Comments

Closed as duplicate of 10114310


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!