GithubHelp home page GithubHelp logo

Comments (5)

gavin-black avatar gavin-black commented on July 28, 2024

I need to dig a little deeper into this, I've not had a chance to reproduce it yet. If you have a simple test case that fails that would help speed up the process.

from encrypted-core-data.

ert4i avatar ert4i commented on July 28, 2024

I will try to R&D and develope some simple project with this issue. But I've tried to use this library in ongoing big project and it failed as mentioned above.

from encrypted-core-data.

quarter1834 avatar quarter1834 commented on July 28, 2024

Having the same problem here. I'll try to explain what we did.

First, we set up a one-to-many relationship in our data model, let's say we got a 'book' object and a 'page' object with such a relationship, so a book can have many pages and every page has exactly one book.
Now you create a book-object in your app and save the changes. Everything is fine. Then you go to another viewcontroller, fetch this book-object again from coredata, create one or more pages and try to set the book for the relation on every page-object or vice versa.
When you try to save now, the save operation will crash in the bindProperty:withValue:forKey:toStatement:atIndex: method after you test for [property isKindOfClass:[NSRelationshipDescription class]], because 'value' is not a managedObject but an NSSet which has no objectID selector.

Hope that helps to recreate the error.

Strange thing is that when you create the book-object and page-objects at once, the relationship will be saved correctly...

from encrypted-core-data.

gavin-black avatar gavin-black commented on July 28, 2024

Quarter, are you seeing this on many-to-many relations only, or is it any sort of relationship? Still not reproduced it, but I think I have a general idea what's going on if it doesn't effect 1-to-1 or 1-to-many.

from encrypted-core-data.

gavin-black avatar gavin-black commented on July 28, 2024

Closing this for now, it seems to be part of the many-to-many issue covered by #20

from encrypted-core-data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.