Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run findHasMany inside an ED runloop
In #2576 we added a runloop inside ED, in order to handle relationship deserializing and make sure we coalesce hasMany /belongsTo changes. However in that PR we missed the findHasMany call, causing us to trigger a flush(triggering an arrayWill/DidChange) once for every record being parsed. This commit ensures we first process all the records together, and then call flush only once. Was not sure how test this without a super specific unit test.
- Loading branch information