-
Notifications
You must be signed in to change notification settings - Fork 50
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
Error when saving record which has many children #51
Comments
+1 for this issue; this sounds big, too bad the maintainer gave up on the project... It seems, giving my complete inexperience with Ember, that in this case Ember uses a snapshot of the Model instead of the actual class... That means the |
I think I got the issue... I'll be sending a PR soon |
igorsantos07
added a commit
to igorsantos07/ember-parse-adapter
that referenced
this issue
Apr 27, 2015
This was referenced Apr 27, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When saving a record with many children, when serializing, an error is thrown in the serializeHasMany function of EmberParseAdapter.Serializer line 184.
The parseClassName function does not exist on the child record. This seems like an issue - is it supposed to be calling the parseClassName method on the serializer/adapter rather?
I got around this in my code by implementing a parseClassName method on my own model, which just returns the parse class name of that model.
Seems like a fix would be to change this line to call the parseClassName method on the serializer, rather than the non-existent method on the child model. Does that sound OK, or am I getting confused somewhere?
I'll make the fix if my solution sounds fine.
The text was updated successfully, but these errors were encountered: