question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

belongsTo relationships set in createRecord aren't tracked properly

See original GitHub issue

v0.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:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
danielspanielcommented, Jun 12, 2017

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.

0reactions
mwpastorecommented, Jun 12, 2017

It’s just an object reference at the end of the day. Right? Or am I missing something?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found