relation not being updated after calling update

I can’t seem to get my backendless database to update after this code is executed
Backendless.UserService.update(user1, new AsyncCallback<BackendlessUser>() {
public void handleResponse(BackendlessUser response) {
Toast.makeText(getActivity(), “Friend Deleted!”, Toast.LENGTH_LONG).show();
public void handleFault(BackendlessFault fault) {

Here is the updateFriendList method

private void updateFriendList(BackendlessUser user1, BackendlessUser user2) {
Object[] currentFriendObjects = (Object[]) user1.getProperty(“friends”);
ArrayList<BackendlessUser> friendsList = new ArrayList<>();
BackendlessUser[] currentFriends = (BackendlessUser[]) currentFriendObjects;
user1.setProperty(“friends”, friendsList);
Everything works successfuly and i am reaching my friend deleted toast yet the relation is not being deleted in BackendlessAutoload is on btw.

Have you verified that user2 was in the “friendsList” collection?

Have you verified that after the following code, the object was indeed removed from the collection:


Yes I did… I created two log statements one before removing the user and one after the removing the user and I can physically see “user2” being removed from the list

Sameer, we tried it in a sample and it works properly, thus we cannot reproduce the problem. I suspect the problem is somewhere in your code. In cases like this we offer the following: we charge $100 for single support incident and review your code. If the problem ends up being in Backendless API (meaning inside of our SDK code) or on the server-side, the fee is refunded back to you. Otherwise, we point out the problem in your code. Please let me know if you’d like to proceed with this route.