Hello there.
I'm trying to validate a form wich has an element not present in the corresponding DB table.
So, I've added it in the model (public $myfield;) and in the validating rules.
But whatever I try, when doing $model->save(), I get an error: myfield is empty. And if I dump $model->attributes, I don't see myfield.
What do I forget ?
I'm trying to validate a form wich has an element not present in the corresponding DB table.
So, I've added it in the model (public $myfield;) and in the validating rules.
But whatever I try, when doing $model->save(), I get an error: myfield is empty. And if I dump $model->attributes, I don't see myfield.
What do I forget ?