Hello. I wonder what is the difference if we validate a model in follow two ways:
$model = new User('scenarioName');
//and then....
$model->validate()
or the second manner:
$model = new User();
//and then....
$model->validate('scenarioName');
What are the differences?
Thanks.
I hope I don’t answer any stupid question.