Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Problem in Update in webapi

i want to update in 2 web api's

i have table customer (id,name,address,phone,city,country,email,password);

firstly in first api i want to change only password so it was not working so i checked on internet and i found this $this->skipAttributes(); I added all attributes in $this->skipAttributes() except password so that i can update it

but now i am making api that will update all the attributes but i have set $this->skipAttributes() so it' won't let me to update data....so kindly tell me what would i do if i have multiple updates apis



7.9k
Accepted
answer

you should rather use "dynamic update"... but as it is not so much columns in your model, I don't think updating the whole object will cause performance problem.

what is dynamic updata can you explain?

you should rather use "dynamic update"... but as it is not so much columns in your model, I don't think updating the whole object will cause performance problem.