Hello,
So I have a model called order and order.items is a hasMany relationship.
Also there is another model called event that order belongs to.
So say order.items has some records filled.
And now I want to set it with an empty array, then feed it into creating an event
// order has some items initially..
order.set('items',[]);
const event = this.store.createReecord('event',{ order })
console.log(event.order.items)
And weirdly sometimes items still has original items and other times items is empty.
Does anyone know why this is?
There is no async or network involved in this...
Thanks