I’m getting the following error when trying to create a record from switching routes
Error: Assertion Failed: You may not pass `null` as id to the store's find method
The problem is in assigning a model to a parent belongs_to association in
var newSchool = this.store.createRecord('deal', {
name: newScholName,
parent: this.get('model.school'),
});
it works from entering the route freashly but throws the assertion when navigating between routes. The parent model is also of the same type and has a null parent value.
If the parent value is left out of createRecord it works regardless