Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Purely theoretically possible.
Either in your validator, or, for example, in beforeSave, check the attribute for a change and if it has changed, add an error.
if($this->isAttributeChanged('attribute')) {
$this->addError('attribute', "Текст сообщения об ошибке");
}
the validator validates, compares, and denies under certain conditions. If you just need to disable - then the validator is the last thing to use.
But if you wrote the question in detail, then there would be a chance of a specific answer with an example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question