We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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



11.6k
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.



1.6k

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.