Skip to content

hasMany not working for embedded records with fetch #408

@jshy

Description

@jshy

I don't know if this is isolated to fetch or find also has the problem, but when fetching data, embedded record content is not loading correctly. The finally object has the _hasMany arrays, but no content. I tracked the problem to this

in Ember.Model.load() this._reloadHasManys(); and in _reloadHasManys(); the first line: if (!this._hasManyArrays) { return; } I placed a console.log() statement to see if this was getting hit and it was. I commented out the this._reloadHasManys(); line and everything works great now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions