We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a simple data structure:
Product = SC.Record.extend { courses: SC.Record.toMany('Course', {nested: true}) }
I create a nested store:
chainStore = product.get('store').chain(); editProduct = chainStore.find(product);
When I make changes to editProduct and call commitChanges(), SC produces an error:
editProduct
commitChanges()
oldChildren is undefined
in registerChildToParet at store.js:1382
If I access one of the courses in the product record using objectAt before creating the nested store, everything works:
objectAt
product.get('courses').objectAt(0) chainStore = product.get('store').chain(); editProduct = chainStore.find(product);
What is the proper procedure for using nested stores on records with nested children?
The text was updated successfully, but these errors were encountered:
Check for parent record before deleting it
a78e9fd
Fixes emberjs-addons#14.
bb96d3a
d067a03
Successfully merging a pull request may close this issue.
I have a simple data structure:
I create a nested store:
When I make changes to
editProduct
and callcommitChanges()
, SC produces an error:in registerChildToParet at store.js:1382
If I access one of the courses in the product record using
objectAt
before creating the nested store, everything works:What is the proper procedure for using nested stores on records with nested children?
The text was updated successfully, but these errors were encountered: