Prevent specific fields from updating


(Willybejarano) #1

Hello all.

Using PUT method, I need to avoid certain fields to be updated.

How I can achieve it.

BR.


(Bobonov) #2

I think best way is using scenario

http://www.yiiframework.com/doc-2.0/guide-structure-models.html#scenarios


(Willybejarano) #3

Yes Roberto, that’s the solution, thank you.