Parse test repo for child saving behaviour / weird behaviour in one-to-many relations
- git clone
- pod update (to be sure that you are using parse ios sdk 1.12.0)
- create a new parse app (parse.com)
- Use ParseTest.xcworkspace (because of using cocoapods)
- Add the application id / client key to the AppDelegate.swift
- Make sure that the app permission allows client class creation (parse.com)
- run
- check console log
If the parent class will be saved, all modified childs classes will be saved as well. In this case the message property of bclass should be changed to "New Child BClass message", but it doesn't. It will be still the initial message "Child BClass message".
- used cocoapods
- parse 1.12.0
- bug occurs only if the pointer of the child is in a array field of the parent (one-to-many). If it's a single relation (one-to-one) it is working as expected.
- subclasses are registered in AppDelegate.swift
- all fetch/update code is in the ViewController.swift file
Thanks for helping!