Re: Delete empty Core Data entities from to-many relationship

2015-02-14 Thread Jerry Krinock
> On 2015 Feb 13, at 11:27, Steve Mills wrote: > > Is there a better strategy for deleting empty container entities? At first I > tried setting the Asset's folder relationship to Cascade, but that threw up > all over. Apparently the “count is never 1” because Core Data does not delete your Fo

Delete empty Core Data entities from to-many relationship

2015-02-13 Thread Steve Mills
My model: Folder: attributes: url relationships: Relationship: files, Destination: Asset, Inverse: folder, To Many, Deny Relationship: keywords, Destination: Keyword, Inverse: assets, To Many, Nullify Asset: attributes: