You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 19, 2025. It is now read-only.
So as can you see, duty record is created and even assigned to the schedule, but schedule record has no duties assigned... Then, when I try to load this schedule in Ember, it also has no duties. Am I doing something wrong?
I use ember 2.1.0, ember-data 2.1.0 and ember-fire 1.6.3.
it looks like you are doing everything correctly. I wonder if it's related to the inverse relationship. Can you remove duty's link back to the interval and see if that fixes it?
Otherwise, I'd like to get a minimal example so I can debug into it.
I know it is a very old issue, but I'm experiencing the same problem. I tried to do what @jembezmamy did (b/c he said it worked) but in my case it didn't. I'm following the instructions in the guides, and my models are:
// app/models/product.js
import DS from 'ember-data';
import { all } from 'rsvp';
export default DS.Model.extend({
prices: DS.hasMany('price', { async: false, inverse: null }),
});
Activity
tstirrat commentedon Jan 21, 2016
it looks like you are doing everything correctly. I wonder if it's related to the inverse relationship. Can you remove duty's link back to the
intervaland see if that fixes it?Otherwise, I'd like to get a minimal example so I can debug into it.
jembezmamy commentedon Jan 21, 2016
It works! Great. But to be frank I need this inverse... Is there any workaround for this situation?
tstirrat commentedon Jan 21, 2016
Thanks for reporting back. It was a total guess... now I need to work out why this is the case...
tstirrat commentedon Jan 21, 2016
can you try the branch in #337 to see if using atomic saves + the ember-data EmbeddedRecordsMixin helps?
jembezmamy commentedon Feb 1, 2016
Yes, it works! Thanks.
tstirrat commentedon Feb 1, 2016
Great, that branch will be EmberFire 2.0. I will make a release this week
AndersDJohnson commentedon Feb 3, 2016
@tstirrat Great news if Emberfire 2.0 is coming this week!
hussfelt commentedon Feb 11, 2016
@tstirrat release on the way? :)
tstirrat commentedon Feb 11, 2016
@hussfelt if you follow the discussion in #337 you'll see that we are not planning to merge it anymore.
tstirrat commentedon Feb 11, 2016
There is more discussion on underlying ember-data bugs in #365, too
hussfelt commentedon Feb 12, 2016
@tstirrat Sorry, I hijacked this issue just to get info on a new release. :) My bad!
Thanks for a great service!
tstirrat commentedon Feb 12, 2016
No problem 😸
bhernez commentedon Jan 27, 2019
Hi!
I know it is a very old issue, but I'm experiencing the same problem. I tried to do what @jembezmamy did (b/c he said it worked) but in my case it didn't. I'm following the instructions in the guides, and my models are:
Any idea or suggestion?
I use
Ember 3.5.1,Ember Data 3.5.2andEmberFire 2.0.10