Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore certain keys #29

Open
mwhuss opened this issue Jul 22, 2014 · 4 comments
Open

Ignore certain keys #29

mwhuss opened this issue Jul 22, 2014 · 4 comments

Comments

@mwhuss
Copy link

mwhuss commented Jul 22, 2014

I'm using this on a NSManagedObject subclass. It's trying to take an array of objects and set them on my object, but the property is an NSSet. This results in the follow exception:

'Unacceptable type of value for to-many relationship: property = "inProgressSyllabi"; desired type = NSSet; given type = __NSArrayI;
@zcharter
Copy link

@mwhuss Have you tried JTSetMappings? (Here's an example from the tests.)

@mwhuss
Copy link
Author

mwhuss commented Jul 23, 2014

I'm handling the creation and setting of those objects myself when doing a sync from the API. They're constructed from JSON and all the correct CoreData associations are setup. I'd much prefer a way to say "don't touch this key, I'll handle it".

@mwhuss
Copy link
Author

mwhuss commented Jul 23, 2014

It's also worth noting that I don't have this issue in v1.1.1, it only started occurring in v1.1.2.

@jamztang
Copy link
Owner

v1.1.2 may have something to do with auto underscore mapping. Can you provide an example schema of your managed object and a sample JSON?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants