-
Notifications
You must be signed in to change notification settings - Fork 28
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
String enums not saving #30
Comments
? |
When the user object is updated, the gender property does not persist. |
https://github.com/1amageek/Pring/blob/master/PringTests/TestDocument.swift#L22 The test is working normally. |
@adeeldb Did you solve? |
@1amageek the enum in the test is of type Int. Unfortunately, String enums don't work. |
https://github.com/1amageek/Pring/blob/master/Pring/Object.swift#L441 I have created a Function to update explicitly. |
@1amageek My solution in my current project is as follows:
|
@adeeldb |
@1amageek the above approach seems to be working fine, given that String does inherit from NSObject. |
Models are as follows:
The text was updated successfully, but these errors were encountered: