You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
destroyById with undefined fk:ID issues destroyAll #112
@bajtos where can I find the method which strips out the keys with undefined values? Personally I'd either like an error thrown or convert undefined to null.
To be honest, I think this issue is another good argument why we should drop ngResource and generate a client API that is more-or-less the same as the server API - see #133.
Activity
bajtos commentedon Nov 28, 2014
What did you expect to see instead?
temp3l commentedon Dec 7, 2014
thought it might throw an error or warning instead of deleting all my products...
But I should catch "undefined fk" on my own ;)
jrschumacher commentedon Sep 28, 2015
@bajtos where can I find the method which strips out the keys with
undefinedvalues? Personally I'd either like an error thrown or convertundefinedtonull.bajtos commentedon Sep 29, 2015
@jrschumacher If the
fkparameter is encoded in the request URL (sorry, don't have enough time to check it myself), then you need to look at Angular's ngResource: https://github.com/angular/angular.js/blob/v1.4.x/src/ngResource/resource.js#L448-L461bajtos commentedon Sep 29, 2015
To be honest, I think this issue is another good argument why we should drop ngResource and generate a client API that is more-or-less the same as the server API - see #133.