05/16/2017 at 9:39 am
#423073
Keymaster
@ Alex
Three things…
- You need to update the district value within the addresses array. Your code example writes just the new district value to a new variable.
- You need to serialize the array before saving it back to the database.
- The example code is not actually writing any value back to the database. The example code I think will just empty the addresses value.
Hope this helps!
