How to disable updatable attribute from model ?

How to make an attribute not updatable from model rule or model behaviour ?

Does this help? http://www.yiiframework.com/doc-2.0/guide-structure-models.html#safe-attributes