I find the documentation and tutorial of Yii 2.0 a bit short.
In a Yii 2.0 Model I would like to add a hidden field with a computed value, let's call it def_id. The model contains fields such as firstname, lastname, email etc. The computed value would be some combination of those three fields. (It is supposed to be some custom type of the logical, unique auto-increment.)
My question: where do I compute def_id with the other given fields so that Create
and Update
will write def_id into the database-table?