Prevent specific fields from updating

Hello all.

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

How I can achieve it.

BR.

I think best way is using scenario

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

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