Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Crash in getter for inverse in To Many-to-To Many relationships #228

Open
Scenario opened this Issue · 1 comment

2 participants

Todd Ouzts Jonathan 'Wolf' Rentzsch
Todd Ouzts

When using the pre-release 1.28 Swift template, I'm getting crashes in mogenerated getters.

The offending relationships are To Many-to-To Many, defined like so:

Category.items (ordered, nullify) <<—>> Item.categories (unordered, nullify)

The mogenerated code for one of the inverses looks like this:

@NSManaged
var categories: NSSet

func categoriesSet() -> NSMutableSet! {
    self.willAccessValueForKey("categories")                  <<< EXC_BAD_ACCESS code=2

    let result = self.mutableSetValueForKey("categories")

    self.didAccessValueForKey("categories")
    return result
}

Is this a known issue and are these cases being tested for 1.28 release? Thanks!

Jonathan 'Wolf' Rentzsch
Owner

Ordered relationships in general are problematic. I finally got them working for Obj-C on the 1.28 branch but sadly I'm not going to hold up the 1.28 release for Swift since it has more fundamental things broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.