ember-model-validator icon indicating copy to clipboard operation
ember-model-validator copied to clipboard

Non-async relations are not validated correctly

Open bladams opened this issue 8 years ago • 3 comments

Validations for related models are not run when the relationship is defined like DS.hasMany('related-model', {async: false})

I believe this is a regression introduced in this commit. I think in this case the related objects are not wrapped in a proxy so the content property is undefined.

I am currently using ember-data 2.8.1

bladams avatar Oct 07 '16 01:10 bladams

I still see this issue on Ember 4.8. Is this repo being maintained?

rogeraraujo90 avatar May 18 '23 11:05 rogeraraujo90

@rogeraraujo90 it is. I can check this issue next weekend

esbanarango avatar May 18 '23 11:05 esbanarango

@esbanarango Thanks! I'm using the custom validator as a workaround. Very helpful!

I don't have free time to investigate the fix by myself until my next product release but let me know if I can help!

rogeraraujo90 avatar May 18 '23 12:05 rogeraraujo90