Ember.isEmpty on async relations


#1

I’ve got some async relations, if i set them like this:

model.set(“asyncRelation”,null);

and the next line a call the folowing:

Ember.isEmpty(model.get(“asyncRelation”))

it is always false, this because an async relation always returns a promise. even if the value is null. Therefore alot of other functionality within ember or libaries doesn’t work. (e.g. ember-validations)

Is there a special function for this? or is something else wrong?