Ember Data Model Comparison


#1

I’m having a bit of trouble comparing models (using Ember.isEqual retrieved via lazy-loading to models retrieved via findRecord / findAll. It has to do with the one being a Model, and the other one being a PromiseObject.

Here’s what I get when I toString() both of them:

<DS.PromiseObject:ember885>

<______@model:customer::ember874:6c9760dd-98dc-4a66-83de-40fa02618f5f>

Properties on both objects are equal, so for now I can just compared using the id property. It would be nice if Ember.isEqual() took this into account, does anyone know if there are any plans to support this?