I have a REST PHP API to get some data, and I use AngularJS $resource to gather them.
When a PHP Error occurs after a $save, the function called is not the error callback but the success callback, and the object become an array of chars with the PHP error. Since the object is actually destroyed that way, I loose the original data.
Is there a way to make $resource to see errors ?