belongsTo relationships set in createRecord aren't tracked properly
See original GitHub issuev0.5.6. changeTracker.auto
is set to true
in the global configuration. order
belongsTo project
(async); project
hasMany order
(async).
let project = store.createRecord('project');
let order = store.createRecord('order', { project });
console.log(order.savedTrackerValue('project')); // => null
Calling saveChanges()
and/or startTrack()
on order
has no effect on the outcome.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Properly create record with Ember Data that has belongsTo ...
Turns out I had the property defined twice in the model, one as a belongsTo and one as an attr . App.People =...
Read more >Record not found handling for belongsTo relationships #1810
In this case Ember-Data creates an empty record with only ID set. Because of this empty records began to show up in application...
Read more >Relationships - Ember Data
In this above case, the new comment's belongsTo relationship will be automatically set to the parent blogPost. Although createRecord is fairly straightforward, ...
Read more >Update Related Record | Help - Zoho Deluge
The zoho.crm.updateRelatedRecord task is used to update the records related to a parent record in Zoho CRM.
Read more >NetSuite Applications Suite - General Import Errors
When you open a CSV file in Excel, extra commas are not visible. ... (either the saved search is public or the user...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes, your right … i realize that sounded a bit harsh, so pretend like I never said anything except … well … you gotta do what you gotta do.
It’s just an object reference at the end of the day. Right? Or am I missing something?